Changeset ca6abee62f31…
Parent 3b79ca50bed6…
by
Changes to one file · Browse files at ca6abee62f31 Showing diff from parent 3b79ca50bed6 Diff from another changeset...
@@ -21,11 +21,14 @@
if os.name == 'nt':
def browse_url(url):
+ try:
+ import win32api
+ except ImportError:
+ return
def start_browser():
try:
- import win32api
win32api.ShellExecute(0, 'open', url, None, None, 0)
- except (ImportError, Exception):
+ except Exception:
pass
threading.Thread(target=start_browser).start()
|
Loading...