Skip to content

Commit

Permalink
Python 3 compatibility
Browse files Browse the repository at this point in the history
Seriously? One exception not as a tuple and one print statement? ಠ_ಠ
  • Loading branch information
modrzew committed Aug 2, 2016
1 parent 3f6aec6 commit 01baeac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
try:
import config
DB_ENGINE = config.DB_ENGINE
except ImportError, AttributeError:
except (ImportError, AttributeError):
DB_ENGINE = 'sqlite:///db.sqlite'


Expand Down
2 changes: 1 addition & 1 deletion worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 01baeac

Please sign in to comment.