Merge pull request #2257 from FinnStutzenstein/Issue2249

No crash without a browser (fixes #2249)
This commit is contained in:
Emanuel Schütze 2016-08-15 09:47:17 +02:00 committed by GitHub
commit 243ef7ae5d

View File

@ -261,7 +261,11 @@ def start_browser(browser_url):
Launches the default web browser at the given url and opens the
webinterface.
"""
try:
browser = webbrowser.get()
except webbrowser.Error:
print('Could not locate runnable browser: Skipping start')
else:
def function():
# TODO: Use a nonblocking sleep event here. Tornado has such features.