Changeset 5479


Ignore:
Timestamp:
Jul 11, 2017, 11:47:11 AM (17 months ago)
Author:
hectorgh
Message:

checking if cron file exists before trying to delete it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d-shutdowner-client/trunk/fuentes/install-files/usr/share/n4d/python-plugins/ShutdownerClient.py

    r5422 r5479  
    2929                                        f.close()
    3030                        else:
    31                                 os.remove(self.cron_file)
     31                                if os.path.exists(self.cron_file):
     32                                        os.remove(self.cron_file)
    3233                       
    3334                        if value["shutdown_signal"] > self.shutdowner_var["shutdown_signal"]:
Note: See TracChangeset for help on using the changeset viewer.