mirror of
https://github.com/romanz/amodem.git
synced 2026-04-18 12:16:00 +08:00
Add GitHub CI
Fixup a few pylint comments
This commit is contained in:
@@ -71,6 +71,7 @@ class Trezor(interface.Device):
|
||||
log.exception('ping failed: %s', e)
|
||||
connection.close() # so the next HID open() will succeed
|
||||
raise
|
||||
return None
|
||||
|
||||
def close(self):
|
||||
"""Close connection."""
|
||||
|
||||
@@ -28,3 +28,4 @@ def find_device():
|
||||
return get_transport(os.environ.get("TREZOR_PATH"))
|
||||
except Exception as e: # pylint: disable=broad-except
|
||||
log.debug("Failed to find a Trezor device: %s", e)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user