diff options
| author | seahawk1986-hotmail <> | 2017-01-12 10:49:13 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2017-01-12 10:49:13 +0000 |
| commit | 0e4fb2baf3e4a0a17247df6d46f04c0b504ae4bd (patch) | |
| tree | 01c1fc77e910eabf9243913e3f3b8598e69a8ffa /share/extensions/plotter.py | |
| parent | Change search priority for newer Googletest releases (diff) | |
| download | inkscape-0e4fb2baf3e4a0a17247df6d46f04c0b504ae4bd.tar.gz inkscape-0e4fb2baf3e4a0a17247df6d46f04c0b504ae4bd.zip | |
[Bug #1650480] pyserial errorhandling in plotter.py tries to iterate over wrong Exception attribute.
Fixed bugs:
- https://launchpad.net/bugs/1650480
(bzr r15413)
Diffstat (limited to 'share/extensions/plotter.py')
| -rwxr-xr-x | share/extensions/plotter.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
