Skip to content

Commit

Permalink
json: JSONEncoder should use elif on second if
Browse files Browse the repository at this point in the history
  • Loading branch information
robvdl committed Apr 5, 2024
1 parent 35afd83 commit 8d206a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sambal/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class leads to nothing but trouble.
def default(self, obj):
if isinstance(obj, (Decimal, Dn, MessageElement)):
return str(obj)
if isinstance(obj, Result):
elif isinstance(obj, Result):
return obj.msgs
elif isinstance(obj, Enum):
return str(obj.value)
Expand Down

0 comments on commit 8d206a8

Please sign in to comment.