Tiny code simplification
No need to catch KeyError
, it's possible to fetch a dictionary key providing a default value if the key doesn't exist.
No need to catch KeyError
, it's possible to fetch a dictionary key providing a default value if the key doesn't exist.