This commit is contained in:
Kovid Goyal 2007-11-27 17:20:44 +00:00
parent 6052670aa4
commit 1fcdada213

View File

@ -41,7 +41,8 @@ def get_metadata(stream):
if info.subject:
mi.category = info.subject
except Exception, err:
print >>sys.stderr, 'Couldn\'t read metadata from pdf: %s with error %s'%(mi.title, str(err))
msg = u'Couldn\'t read metadata from pdf: %s with error %s'%(mi.title, unicode(err))
print >>sys.stderr, msg.encode('utf8')
return mi