diff --git a/db.py b/db.py index 5bed916470..5993f8897a 100644 --- a/db.py +++ b/db.py @@ -16,7 +16,7 @@ try: import config DB_ENGINE = config.DB_ENGINE -except ImportError, AttributeError: +except (ImportError, AttributeError): DB_ENGINE = 'sqlite:///db.sqlite' diff --git a/worker.py b/worker.py index 048142fc4a..e9ce2a0a61 100644 --- a/worker.py +++ b/worker.py @@ -310,7 +310,7 @@ def spawn_workers(workers, status_bar=True): _ = os.system('cls') else: _ = os.system('clear') - print get_status_message(workers, count, start_date, points_stats) + print(get_status_message(workers, count, start_date, points_stats)) time.sleep(0.5)