Skip to content
Snippets Groups Projects
Commit 3375b604 authored by Moul's avatar Moul
Browse files

[mod] #240/#223: Use ModuleNotFoundError when click is not installed

Requires Python 3.6
https://docs.python.org/3/library/exceptions.html#ModuleNotFoundError
parent c80df65a
No related branches found
No related tags found
No related merge requests found
......@@ -134,9 +134,7 @@ class EndPoint(object):
ctx = get_current_context()
peer = ctx.obj["PEER"]
gtest = ctx.obj["GTEST"]
# To be activated when dropping Python 3.5
# except (ModuleNotFoundError, RuntimeError):
except:
except (ModuleNotFoundError, RuntimeError):
peer, gtest = None, None
if peer:
if ":" in peer:
......
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