Skip to content
Snippets Groups Projects
Commit 4e3bb176 authored by Matthew David Pitkin's avatar Matthew David Pitkin
Browse files

utils.py: use EnvironmentError

parent eeb68cd7
No related branches found
No related tags found
No related merge requests found
...@@ -359,8 +359,8 @@ def get_version_information(): ...@@ -359,8 +359,8 @@ def get_version_information():
try: try:
with open(version_file, 'r') as f: with open(version_file, 'r') as f:
return f.readline().rstrip() return f.readline().rstrip()
except IOError: except EnvironmentError:
raise IOError("No version information file '.version' found") print("No version information file '.version' found")
def get_progress_bar(module='tqdm'): def get_progress_bar(module='tqdm'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment