Commit 411588c8 authored by Guido van Rossum's avatar Guido van Rossum

sv now raises sv.error, not RuntimeError

parent 83074431
......@@ -81,7 +81,7 @@ def main():
elif dev == DEVICE.TIMER0:
try:
captureData, fieldID = v.GetCaptureData()
except RuntimeError, val:
except sv.error, val:
if val <> 'no data available':
print val
continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment