summaryrefslogtreecommitdiffstats
path: root/libtoprammer/chips
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2013-10-06 21:11:55 +0200
committerMichael Buesch <m@bues.ch>2013-10-06 21:11:55 +0200
commit7d4328e1ba12f9f49d179ab286136d42a80f5dae (patch)
tree7192d9e68591f0f54aa3ae73d027bbb2adf5c0c6 /libtoprammer/chips
parent2b1adf26725d9bfdcbd6d5289acdb7717451e4b2 (diff)
downloadtoprammer-7d4328e1ba12f9f49d179ab286136d42a80f5dae.tar.xz
toprammer-7d4328e1ba12f9f49d179ab286136d42a80f5dae.zip
makeSip6: Fix match error
Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'libtoprammer/chips')
-rw-r--r--libtoprammer/chips/microchip8/makeSip6.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/libtoprammer/chips/microchip8/makeSip6.py b/libtoprammer/chips/microchip8/makeSip6.py
index 59e8627..efe1bfe 100644
--- a/libtoprammer/chips/microchip8/makeSip6.py
+++ b/libtoprammer/chips/microchip8/makeSip6.py
@@ -70,6 +70,9 @@ def makeSip():
if matchObj:
break
matchObj = re.match('.*(pic[0-9]+l?f\w+)(dip[0-9a]+).*', line)
+ if not matchObj:
+ print("{} did not match".format(line))
+ continue
print('matched {} - {}'.format(matchObj.group(1), matchObj.group(2)))
dMCU.setdefault(matchObj.group(1), matchObj.group(2))
fin.close()
bues.ch cgit interface