diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2018-06-04 15:08:04 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2018-06-04 15:08:04 -0400 |
commit | 4a28a9d7da98a70ef2f786c2330c734252b5a5d7 (patch) | |
tree | 64fff173b8f91f2337e944a2fd1a572c1a64de41 | |
parent | e86cbd1cac64659555eacf491f567c6a75a629fb (diff) |
Minor tweak to map2link.py
-rw-r--r-- | tools/map2link.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/map2link.py b/tools/map2link.py index b24c82f..109dfa1 100644 --- a/tools/map2link.py +++ b/tools/map2link.py @@ -36,10 +36,11 @@ class MapFile: self.bankno = 0 else: self.bankno = int(match.group(1)) + bankname = linestr.split()[0].rstrip(':') try: - self.banktype = MapFile.bank_types.index(linestr.split()[0].rstrip(':')) + self.banktype = MapFile.bank_types.index(bankname) except ValueError as e: - raise ValueError(f'Unrecognized bank type: {linestr.split()[0]}') from e + raise ValueError(f'Unrecognized bank type: {bankname}') from e @property def name(self): |