log documents without mail numbers

This commit is contained in:
Frédéric Péters 2011-09-04 17:11:10 +02:00
parent f9f3a3c1c0
commit adb42ce1be
1 changed files with 2 additions and 1 deletions

View File

@ -157,8 +157,9 @@ class Migrate(BrowserView):
# this document was not completed, do not create a secondary object
second_object_typename = None
if not ob.mailnumber:
if second_object_typename and not ob.mailnumber:
# if there's no mailnumber, do not create a secondary object
print >> self.logfile, 'W: document without a mail number'
second_object_typename = None
if second_object_typename: