sv now raises sv.error, not RuntimeError

This commit is contained in:
Guido van Rossum 1992-12-14 15:51:53 +00:00
parent 8307443175
commit 411588c888
1 changed files with 1 additions and 1 deletions

View File

@ -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