diff --git a/flatisfy/models/flat.py b/flatisfy/models/flat.py index 127b007..7e3c3c3 100644 --- a/flatisfy/models/flat.py +++ b/flatisfy/models/flat.py @@ -157,6 +157,8 @@ class Flat(BASE): """ Photos validation method """ + if not photos: + photos = [] for photo in photos: try: # Remove computed hash to avoid storing it in db