Skip to content

Commit

Permalink
Force string comparision of attributes for duplicate=CHECK.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKrahl committed Jul 28, 2015
1 parent 975e5fd commit 15540a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icatingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def check_duplicate(obj):
v = getattr(obj, a)
# FIXME: must take the attribute type into account for the
# comparision of the value.
if v is not None and getattr(dobj, a) != v:
if v is not None and str(getattr(dobj, a)) != v:
raise
elif conf.duplicate == "OVERWRITE":
dobj.get()
Expand Down

0 comments on commit 15540a7

Please sign in to comment.