From 7a84eedebf7a97ecf25bca0e6ccbe84a4046fc0a Mon Sep 17 00:00:00 2001 From: Schrolli Date: Tue, 28 Apr 2015 11:20:51 +0200 Subject: [PATCH] little changes --- boswatch.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/boswatch.py b/boswatch.py index 20893b5..51397ee 100644 --- a/boswatch.py +++ b/boswatch.py @@ -169,12 +169,15 @@ try: except: log("cannot read config file","error") + #in case of reading error, set standard values log("set to standard configuration") fms_double_ignore_time = 5 zvei_double_ignore_time = 5 poc_double_ignore_time = 10 poc_filter_range_start = 0000000 poc_filter_range_end = 9999999 + + #no config - no modules ;-) useMySQL = 0 useHTTPrequest = 0 @@ -336,7 +339,7 @@ try: if decoded.__contains__("Alpha:"): poc_text = decoded.split('Alpha: ')[1].strip().rstrip('').strip() else: - poc_text = "" + poc_text = "" if len(poc_id) == 7: #if POC is valid if poc_id >= poc_filter_range_start: if poc_id >= poc_filter_range_start: @@ -392,7 +395,7 @@ try: if decoded.__contains__("Alpha:"): poc_text = decoded.split('Alpha: ')[1].strip().rstrip('').strip() else: - poc_text = "" + poc_text = "" if len(poc_id) == 7: #if POC is valid if poc_id >= poc_filter_range_start: if poc_id >= poc_filter_range_start: