X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3a70fb37a8784ea703eb23d8b19b90bfd00f13bc..bd2ad2356d916f72762de867890b5d176830f73b:/librarian/dcparser.py?ds=sidebyside diff --git a/librarian/dcparser.py b/librarian/dcparser.py index f64317a..5a571ec 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -248,7 +248,7 @@ class WorkInfo(object): if not field.multiple: raise "OUCH!! for field %s" % name - return value[0] + return value[0] if value else None except (KeyError, AttributeError): return object.__getattribute__(self, name)