fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor fixes.
[librarian.git]
/
librarian
/
picture.py
diff --git
a/librarian/picture.py
b/librarian/picture.py
index
5a0c47b
..
6fc40b1
100644
(file)
--- a/
librarian/picture.py
+++ b/
librarian/picture.py
@@
-120,7
+120,7
@@
class WLPicture(object):
data = data.replace(u'\ufeff', '')
# assume images are in the same directory
data = data.replace(u'\ufeff', '')
# assume images are in the same directory
- if image_store is None and
xmlfile.name is not None
:
+ if image_store is None and
getattr(xmlfile, 'name', None)
:
image_store = ImageStore(path.dirname(xmlfile.name))
try:
image_store = ImageStore(path.dirname(xmlfile.name))
try: