diff options
Diffstat (limited to 'bin/dispatch-conf')
-rwxr-xr-x | bin/dispatch-conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 68fd3e899..d0309701e 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -51,7 +51,7 @@ while SCRATCH_DIR is None: continue os.mkdir(mydir) SCRATCH_DIR = mydir - except OSError, e: + except OSError as e: if e.errno != 17: raise os.umask(oldmask) @@ -305,7 +305,7 @@ class dispatch: os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.options["log-file"]) try: os.rename(newconf, curconf) - except (IOError, os.error), why: + except (IOError, os.error) as why: print >> sys.stderr, 'dispatch-conf: Error renaming %s to %s: %s; fatal' % \ (newconf, curconf, str(why)) |