diff options
| author | Sebastian Wüst <sebi@timewaster.de> | 2017-02-19 17:14:13 +0000 |
|---|---|---|
| committer | Sebastian Wüst <sebi@timewaster.de> | 2017-02-19 17:14:13 +0000 |
| commit | 52cfe4a497e8775f61dfd58be5095d0439afecb8 (patch) | |
| tree | ec05fe5e8fd7e18a83ad6609674bac9c89986c7e /share | |
| parent | Implement selector reordering via drag and drop. A few other tweeks. (diff) | |
| download | inkscape-52cfe4a497e8775f61dfd58be5095d0439afecb8.tar.gz inkscape-52cfe4a497e8775f61dfd58be5095d0439afecb8.zip | |
Extensions: prevent exception when inst.strerror is None
(bzr r15534)
Diffstat (limited to 'share')
| -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 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: |
