Changeset 12165


Ignore:
Timestamp:
7 Dec 2014, 21:45:40 (10 years ago)
Author:
Henrik Bettermann
Message:

Ensure that setMD5 really receives file objects and not None.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/documents.py

    r12164 r12165  
    121121                attrname = filename.replace('.','_')
    122122                file = store.getFileByContext(self, attr=filename)
    123                 files.append((attrname, file))
     123                if file:
     124                    files.append((attrname, file))
    124125        except AttributeError:
    125126            # In unit tests we don't have a customer to
Note: See TracChangeset for help on using the changeset viewer.