]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
sv now raises sv.error, not RuntimeError
authorGuido van Rossum <guido@python.org>
Mon, 14 Dec 1992 15:51:53 +0000 (15:51 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 14 Dec 1992 15:51:53 +0000 (15:51 +0000)
Demo/sgi/sv/contcapt.py

index 4d2e88865e23a2ce81cfb27a3c465202743d6099..6c0a0003bb4efbf27047f8e2d25630a19d22c724 100755 (executable)
@@ -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