# HG changeset patch # User David Douard # Date 1528144061 -7200 # Node ID dadf7c8d43adba2bc6c5b80de0beb7a7f23a758c # Parent ffd1559ad7f0c791c5ac8d8d7577f5029afee6fe [plotter] use OSError instead of more specific SerialException diff -r ffd1559ad7f0 -r dadf7c8d43ad pygpibtoolkit/plotter/gpib_plotter.py --- a/pygpibtoolkit/plotter/gpib_plotter.py Sun Jun 03 18:57:10 2018 +0200 +++ b/pygpibtoolkit/plotter/gpib_plotter.py Mon Jun 04 22:27:41 2018 +0200 @@ -140,7 +140,7 @@ plotter = GPIBplotter( device=options.device, address=int(options.address), timeout=0.06) - except (gpib.SerialException, gpib.ConnectionError) as e: + except (OSError, gpib.ConnectionError) as e: sys.stderr.write('Connection error:\n\t' + '\n\t'.join( [str(x) for x in e.args]) + '\n') sys.stderr.write('Check your parameters\n')