1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +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: try:
# this also raises an error if there's some data remaining # this also raises an error if there's some data remaining
decoded = cbor.decode(metadata) decoded = cbor.decode(metadata)
except: except Exception:
raise INVALID_METADATA raise INVALID_METADATA
if not isinstance(decoded, dict): if not isinstance(decoded, dict):