1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

Fix bare 'except' style error - catch Exception instead

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
Gabriel Kerekeš 2020-07-30 15:38:28 +02:00 committed by Pavol Rusnak
parent 12132ea64b
commit c0eba979c6

View File

@ -167,7 +167,7 @@ def _validate_metadata(metadata: bytes) -> None:
try:
# this also raises an error if there's some data remaining
decoded = cbor.decode(metadata)
except:
except Exception:
raise INVALID_METADATA
if not isinstance(decoded, dict):