summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xshare/extensions/embedimage.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/share/extensions/embedimage.py b/share/extensions/embedimage.py
index 159c3c152..bdc15bde2 100755
--- a/share/extensions/embedimage.py
+++ b/share/extensions/embedimage.py
@@ -75,8 +75,11 @@ class Embedder(inkex.Effect):
if (absref != None):
path=absref
- path=unicode(path, "utf-8")
-
+ try:
+ path=unicode(path, "utf-8")
+ except TypeError:
+ path=path
+
if (not os.path.isfile(path)):
inkex.errormsg(_('No xlink:href or sodipodi:absref attributes found, or they do not point to an existing file! Unable to embed image.'))
if path: