diff --git a/grmn/devices.py b/grmn/devices.py index 1d82866..6265a79 100644 --- a/grmn/devices.py +++ b/grmn/devices.py @@ -14,7 +14,7 @@ def get_name(hwid, subid, default=None): global DEVICES hwid = int(hwid) - if subid.isnumeric(): + if type(subid) is str and subid.isnumeric(): subid = int(subid) return DEVICES.get(hwid, {subid: default}).get(subid, default)