Skip to content

Commit

Permalink
Fixed run loop not exiting on unknown ImportError
Browse files Browse the repository at this point in the history
after initial dep install
  • Loading branch information
imayhaveborkedit committed May 20, 2016
1 parent 4f807d9 commit 176d044
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ def main():
break # check if restart? replace process?

except ImportError as e:
print(e)

if not tried_requirementstxt:
tried_requirementstxt = True

# TODO: Better output
print(e)
print("Attempting to install dependencies...")

err = PIP.run_install('-r requirements.txt')
Expand All @@ -198,6 +198,10 @@ def main():
break
else:
print("\nOk lets hope it worked\n")
else:
traceback.print_exc()
print("Unknown ImportError, exiting.")
break


if __name__ == '__main__':
Expand Down

0 comments on commit 176d044

Please sign in to comment.