Skip to content

Commit

Permalink
Update forms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
domdinicola authored Apr 13, 2022
1 parent a2c009e commit 00f0cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/concurrency/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def prepare_value(self, value):
return SignedValue(self._signer.sign(value))

def to_python(self, value):
value = super().to_python(value)
value = super().to_python(value) or 0
try:
return int(self._signer.unsign(value))
except BadSignature:
Expand Down

0 comments on commit 00f0cc5

Please sign in to comment.