dadf7c8d43ad — David Douard 6 years ago
[plotter] use OSError instead of more specific SerialException
1 files changed, 1 insertions(+), 1 deletions(-)

M pygpibtoolkit/plotter/gpib_plotter.py
M pygpibtoolkit/plotter/gpib_plotter.py +1 -1
@@ 140,7 140,7 @@ if __name__ == '__main__':
         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')