From 52cfe4a497e8775f61dfd58be5095d0439afecb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20W=C3=BCst?= Date: Sun, 19 Feb 2017 18:14:13 +0100 Subject: Extensions: prevent exception when inst.strerror is None (bzr r15534) --- share/extensions/plotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/extensions/plotter.py') 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: -- cgit v1.2.3