From 05843e29b4fffcc676da0e67b7a840a24d7b91d4 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 19 Jan 2012 16:40:51 +0100 Subject: [PATCH] fix for empty salias --- librarian/dcparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1