Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1867 | Checksum | null values
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jul 31, 2024
1 parent a8286f6 commit 9e694c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocldev/checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ def getvalue(obj, key, default=None):
if obj is None:
return default
if isinstance(obj, dict):
return obj.get(key, default)
return obj.get(key, default) or default
value = getattr(obj, key, default)
if hasattr(value, 'all'):
return value.all()
return value
return value or default


class Checksum:
Expand Down

0 comments on commit 9e694c6

Please sign in to comment.