Check for TypeError (in case NoneType if the max_points entry hasn't been added yet)

pull/38/head
x89 10 years ago
parent 292d2006fd
commit ec0452983f

@ -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')

Loading…
Cancel
Save