X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/3a70fb37a8784ea703eb23d8b19b90bfd00f13bc..6badff0808ac498cca8f405d047316940aac8a03:/librarian/dcparser.py?ds=inline 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)