code cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user