mirror of
https://github.com/cmand/scamper.git
synced 2024-05-19 06:50:05 +00:00
modified one instruction
return False instead of sys.exit(-1) in the function next_object()
This commit is contained in:
+3
-1
@@ -523,7 +523,9 @@ class WartsReader(object):
|
||||
return wd
|
||||
else:
|
||||
print "Unsupported object: %02x Len: %d" % (typ, length)
|
||||
sys.exit(-1)
|
||||
return False #with this commmand, I could run my program over several warts files,
|
||||
#instead of having to run my script for each file separately due to the sys.exit() instruction
|
||||
#sys.exit(-1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user