summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-12-14 15:51:53 (GMT)
committerGuido van Rossum <guido@python.org>1992-12-14 15:51:53 (GMT)
commit411588c888c67de0c1301cbc0da19ff798ff2f64 (patch)
tree84b87d8dae752ab3f051590e60c340b707b30684 /Demo
parent8307443175f4c763b07c76763114b41f5896cb1c (diff)
downloadcpython-411588c888c67de0c1301cbc0da19ff798ff2f64.zip
cpython-411588c888c67de0c1301cbc0da19ff798ff2f64.tar.gz
cpython-411588c888c67de0c1301cbc0da19ff798ff2f64.tar.bz2
sv now raises sv.error, not RuntimeError
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/sgi/sv/contcapt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sgi/sv/contcapt.py b/Demo/sgi/sv/contcapt.py
index 4d2e888..6c0a000 100755
--- a/Demo/sgi/sv/contcapt.py
+++ b/Demo/sgi/sv/contcapt.py
@@ -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