diff options
Diffstat (limited to 'run/proc_entry.py')
-rw-r--r-- | run/proc_entry.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/run/proc_entry.py b/run/proc_entry.py index 0b7f9ce..4ac2c51 100644 --- a/run/proc_entry.py +++ b/run/proc_entry.py | |||
@@ -8,5 +8,8 @@ class ProcEntry(object): | |||
8 | def write_proc(self): | 8 | def write_proc(self): |
9 | if not os.path.exists(self.proc): | 9 | if not os.path.exists(self.proc): |
10 | raise Exception("Invalid proc entry %s" % self.proc) | 10 | raise Exception("Invalid proc entry %s" % self.proc) |
11 | with open(self.proc, 'w') as entry: | 11 | try: |
12 | entry.write(self.data) | 12 | with open(self.proc, 'w') as entry: |
13 | entry.write(self.data) | ||
14 | except: | ||
15 | print("Failed to write into %s value:\n%s" % (self.proc, self.data)) | ||