summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorSebastian Wüst <sebi@timewaster.de>2017-02-19 17:14:13 +0000
committerSebastian Wüst <sebi@timewaster.de>2017-02-19 17:14:13 +0000
commit52cfe4a497e8775f61dfd58be5095d0439afecb8 (patch)
treeec05fe5e8fd7e18a83ad6609674bac9c89986c7e /share
parentImplement selector reordering via drag and drop. A few other tweeks. (diff)
downloadinkscape-52cfe4a497e8775f61dfd58be5095d0439afecb8.tar.gz
inkscape-52cfe4a497e8775f61dfd58be5095d0439afecb8.zip
Extensions: prevent exception when inst.strerror is None
(bzr r15534)
Diffstat (limited to 'share')
-rwxr-xr-xshare/extensions/plotter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/extensions/plotter.py b/share/extensions/plotter.py
index 800142bb2..965fbf6d9 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.strerror:
+ if inst.strerror is not None and '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: