X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3a70fb37a8784ea703eb23d8b19b90bfd00f13bc..2258dea3cedb63cc7b0f0bcacec6d863381d42ca:/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)