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:
|
elif dev == DEVICE.TIMER0:
|
||||||
try:
|
try:
|
||||||
captureData, fieldID = v.GetCaptureData()
|
captureData, fieldID = v.GetCaptureData()
|
||||||
except RuntimeError, val:
|
except sv.error, val:
|
||||||
if val <> 'no data available':
|
if val <> 'no data available':
|
||||||
print val
|
print val
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue