diff --git a/stack/monitor/webfiles/settings.cgi.in b/stack/monitor/webfiles/settings.cgi.in index 9a06bc716b6605818c94b62079bbca5e3d3f1243..6cfc177add47dcee7c4843a4db837ead61a6bbfd 100755 --- a/stack/monitor/webfiles/settings.cgi.in +++ b/stack/monitor/webfiles/settings.cgi.in @@ -29,7 +29,10 @@ with open(config_file, 'w') as file: parser.write(file) if len(form) > 0: - os.remove("{{ timestamp }}") + try: + os.remove("{{ timestamp }}") + except OSError: + pass print "<h1>Values that can be defined :</h1>" print "<form action=\"/index.cgi\" method=\"post\" class=\"pure-form-aligned\">"