From ec0452983f0632e619dd2f8aa543604e5c2ea854 Mon Sep 17 00:00:00 2001 From: x89 Date: Wed, 17 Jun 2015 14:31:51 +0100 Subject: [PATCH] Check for TypeError (in case NoneType if the max_points entry hasn't been added yet) --- shreddit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shreddit.py b/shreddit.py index 0581c54..b9eadee 100755 --- a/shreddit.py +++ b/shreddit.py @@ -60,6 +60,8 @@ try: max_score = config.getint('main', 'max_score') except ValueError: max_score = None +except TypeError: + max_score = None save_directory = config.get('main', 'save_directory') _user = config.get('main', 'username')