summaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
Diffstat (limited to 'monitor')
-rwxr-xr-xmonitor/josef_monitor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor/josef_monitor.py b/monitor/josef_monitor.py
index c2307a5..94880b9 100755
--- a/monitor/josef_monitor.py
+++ b/monitor/josef_monitor.py
@@ -445,7 +445,7 @@ def main(args):
# Save info about monitored domains
domain_dict = []
- if len monitored_domains > 0:
+ if len(monitored_domains) > 0:
for md in monitored_domains:
domain_dict.append(md.to_dict())
open(CONFIG.DOMAINS_FILE, 'w').write(json.dumps(domain_dict))
@@ -456,7 +456,7 @@ if __name__ == '__main__':
if not os.path.exists(CONFIG.OUTPUT_DIR):
os.makedirs(CONFIG.OUTPUT_DIR)
- if not os.path.exists(CONFIG.DB_PATH):
+ if CONFIG.DB_PATH and not os.path.exists(CONFIG.DB_PATH):
os.makedirs(CONFIG.DB_PATH)
main(args)