some attributes don't work

This commit is contained in:
j 2016-01-13 11:33:47 +05:30
parent 4fcbe401f7
commit b9a8c91868
1 changed files with 4 additions and 1 deletions

View File

@ -149,7 +149,10 @@ def info(pdf):
if xmp:
for key in dir(xmp):
if key.startswith('dc_'):
value = getattr(xmp, key)
try:
value = getattr(xmp, key)
except:
continue
if isinstance(value, dict) and 'x-default' in value:
value = value['x-default']
elif isinstance(value, list):