catch type error when pulling phantom pads

This commit is contained in:
Michael Murtaugh 2016-10-24 09:29:22 +02:00
parent de1be3cbc2
commit c20592ddc2

View File

@ -129,6 +129,10 @@ def main (args):
break
else:
sleep(3)
except TypeError as e:
print ("Type Error loading pad {0} (phantom pad?), skipping".format(padid).encode("utf-8"), file=sys.stderr)
skip=True
break
if skip:
continue