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