code cleanup

This commit is contained in:
blitzmann
2017-11-27 21:05:06 -05:00
parent 2365112292
commit 2936b88c3d
43 changed files with 193 additions and 172 deletions

View File

@@ -5,9 +5,11 @@ import platform
version_block = ''
class PreCheckException(Exception):
pass
class PreCheckMessage():
def __init__(self, msg):
# wx may not be installed, in which case print to console. For all other prechecks, should pop up a MessageDialog
@@ -21,6 +23,7 @@ class PreCheckMessage():
finally:
print(msg)
def version_precheck():
global version_block
@@ -80,4 +83,4 @@ def version_precheck():
version_block += "\nDateutil version: {}".format(dateutil.__version__)
except:
msg = "pyfa requires the python-dateutil module. You can download python-dateutil form https://pypi.python.org/pypi/python-dateutil"
raise PreCheckException(msg)
raise PreCheckException(msg)