ssh: fix exception type for missing device

nistp521
Roman Zeyde 7 years ago
parent c4dfca04f2
commit 1942e3999b
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

@ -135,7 +135,7 @@ def handle_connection_error(func):
def wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except IOError as e:
except device.interface.NotFoundError as e:
log.error('Connection error (try unplugging and replugging your device): %s', e)
return 1
return wrapper

Loading…
Cancel
Save