From 8cc13590b407a8bc0c9d0110e437f8c884cc695e Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 29 Jul 2013 13:26:51 -0400 Subject: [PATCH] Make exceptions handling python 2.4 compatible. --- library/system/cron | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/system/cron b/library/system/cron index 93d8c95fa10..ce4ab70f43a 100644 --- a/library/system/cron +++ b/library/system/cron @@ -183,7 +183,7 @@ class CronTab(object): f = open(self.cron_file, 'r') self.lines = f.read().splitlines() f.close() - except IOError as e: + except IOError, e: # cron file does not exist return except: @@ -265,7 +265,7 @@ class CronTab(object): def remove_job_file(self): try: os.unlink(self.cron_file) - except OSError as e: + except OSError, e: # cron file does not exist return except: