mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
Fix bare 'except' style error - catch Exception instead
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
parent
12132ea64b
commit
c0eba979c6
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user