diff options
author | Josef Gustafsson <josef.gson@gmail.com> | 2015-09-28 10:17:16 +0200 |
---|---|---|
committer | Josef Gustafsson <josef.gson@gmail.com> | 2015-09-28 10:17:16 +0200 |
commit | 3b1939fe277131502ad97c10c496a92d615dc391 (patch) | |
tree | a3ab0c493e79932f03d7c10ecbfe287b20bf3577 /monitor/josef_monitor.py | |
parent | 4f5d0256001c02e28b47745f7863587bda98d017 (diff) |
compability fixed for runnning without leveldb
Diffstat (limited to 'monitor/josef_monitor.py')
-rwxr-xr-x | monitor/josef_monitor.py | 4 |
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) |