138 |
138 |
139 try: |
139 try: |
140 plotter = GPIBplotter( |
140 plotter = GPIBplotter( |
141 device=options.device, address=int(options.address), |
141 device=options.device, address=int(options.address), |
142 timeout=0.06) |
142 timeout=0.06) |
143 except (gpib.SerialException, gpib.ConnectionError) as e: |
143 except (OSError, gpib.ConnectionError) as e: |
144 sys.stderr.write('Connection error:\n\t' + '\n\t'.join( |
144 sys.stderr.write('Connection error:\n\t' + '\n\t'.join( |
145 [str(x) for x in e.args]) + '\n') |
145 [str(x) for x in e.args]) + '\n') |
146 sys.stderr.write('Check your parameters\n') |
146 sys.stderr.write('Check your parameters\n') |
147 sys.exit(1) |
147 sys.exit(1) |
148 if options.verbose: |
148 if options.verbose: |