summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2012-05-04 09:39:56 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2012-05-04 09:39:56 (GMT)
commit1e9112d11ef5f6c40f244b6b648da14ae0409f79 (patch)
treee7df1ef105b7ef1a963796244a94e3163c58c228
parenta1c23a9368768285fef4ad2a20e5fc4e36a5e904 (diff)
downloadtabellio.pcfdb-1e9112d11ef5f6c40f244b6b648da14ae0409f79.zip
tabellio.pcfdb-1e9112d11ef5f6c40f244b6b648da14ae0409f79.tar.gz
tabellio.pcfdb-1e9112d11ef5f6c40f244b6b648da14ae0409f79.tar.bz2
do not fail on missing commission
-rw-r--r--tabellio/pcfdb/sync.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index e0db924..b0368e3 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -1039,7 +1039,10 @@ class SyncFromPcfDbView(BrowserView):
else:
object.authors = []
- object.commissions = [RelationValue(self.get_commission_intid(x)) for x in curcom or []]
+ try:
+ object.commissions = [RelationValue(self.get_commission_intid(x)) for x in curcom or []]
+ except AttributeError:
+ pass
if polgroups:
polgroups = [self.get_polgroup_intid(polgroups_id_to_title[x]) for x in polgroups]