Permalink
Browse files

Handle correctly a None argument to sanitize_record

  • Loading branch information...
1 parent 25555b3 commit 9c1b4ebba44d423a07a2b39886c5f04f3c2070ff @priteau priteau committed Mar 25, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 epu/dtrs/store.py
View
@@ -526,6 +526,7 @@ def sanitize_record(record):
@param record: record dictionary
@return:
"""
- if VERSION_KEY in record:
- del record[VERSION_KEY]
+ if record is not None:
+ if VERSION_KEY in record:
+ del record[VERSION_KEY]
return record

0 comments on commit 9c1b4eb

Please sign in to comment.