diff --git a/mavparm.py b/mavparm.py index a2fcef518..f89cc8164 100644 --- a/mavparm.py +++ b/mavparm.py @@ -117,7 +117,7 @@ def load(self, filename, wildcard='*', mav=None, check=True, use_excludes=True): if not fnmatch.fnmatch(a[0].upper(), wildcard.upper()): continue value = a[1].strip() - if value.lower().startswith('0x'): + if isinstance(value, str) and value.lower().startswith('0x'): numeric_value = int(value[2:], 16) else: numeric_value = float(value)