mirror of https://github.com/python/cpython
sv now raises sv.error, not RuntimeError
This commit is contained in:
parent
8307443175
commit
411588c888
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue