Commit 1917ce5f authored by Guillaume Mella's avatar Guillaume Mella

fix bug since erro_data may be not iterable

parent a6ea717f
......@@ -37,7 +37,10 @@ class StarInfoEntry(Base):
def is_unique(self):
# print("is_unique(): %s : %s " % (self.error_data, DUPLICATED_ERROR_MSG in self.error_data))
return DUPLICATED_ERROR_MSG in self.error_data
if self.error_data:
return DUPLICATED_ERROR_MSG in self.error_data
else:
return False
class Submission(Base):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment