From 0e4fb2baf3e4a0a17247df6d46f04c0b504ae4bd Mon Sep 17 00:00:00 2001 From: seahawk1986-hotmail <> Date: Thu, 12 Jan 2017 11:49:13 +0100 Subject: [Bug #1650480] pyserial errorhandling in plotter.py tries to iterate over wrong Exception attribute. Fixed bugs: - https://launchpad.net/bugs/1650480 (bzr r15413) --- share/extensions/plotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/extensions/plotter.py b/share/extensions/plotter.py index 8a14d55bc..800142bb2 100755 --- a/share/extensions/plotter.py +++ b/share/extensions/plotter.py @@ -196,7 +196,7 @@ class Plot(inkex.Effect): try: mySerial.open() except Exception as inst: - if 'ould not open port' in inst.args[0]: + if 'ould not open port' in inst.strerror: inkex.errormsg(_("Could not open port. Please check that your plotter is running, connected and the settings are correct.")) return else: -- cgit v1.2.3