Skip to content
Snippets Groups Projects
Commit 6119b6df authored by Erik Reid's avatar Erik Reid
Browse files

bugfix: catch multiple exceptions with tuple not list

parent af277012
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ def _rpc(hostname, ssh):
ssh_private_key_file=ssh['private-key'])
try:
dev.open()
except [EzErrors.ConnectError, EzErrors.RpcError] as e:
except (EzErrors.ConnectError, EzErrors.RpcError) as e:
raise ConnectionError(str(e))
return dev.rpc
......
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