|
|
@ -150,7 +150,7 @@ class CronVar(object):
|
|
|
|
self.lines = f.read().splitlines()
|
|
|
|
self.lines = f.read().splitlines()
|
|
|
|
f.close()
|
|
|
|
f.close()
|
|
|
|
except IOError:
|
|
|
|
except IOError:
|
|
|
|
e = get_exception
|
|
|
|
e = get_exception()
|
|
|
|
# cron file does not exist
|
|
|
|
# cron file does not exist
|
|
|
|
return
|
|
|
|
return
|
|
|
|
except:
|
|
|
|
except:
|
|
|
@ -207,7 +207,7 @@ class CronVar(object):
|
|
|
|
os.unlink(self.cron_file)
|
|
|
|
os.unlink(self.cron_file)
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
except OSError:
|
|
|
|
except OSError:
|
|
|
|
e = get_exception
|
|
|
|
e = get_exception()
|
|
|
|
# cron file does not exist
|
|
|
|
# cron file does not exist
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|