unsupported operand type(s) for -: 'int' and 'NoneType' in activities/models.py #864
Labels
back-end
These are issues related to our Django back-end
bug
Undesired and unintended behaviour in the website
easy-to-fix
These issues are easy to fix and recommended for newer members.
In some edge-case one might get an operand exception if the aggregated sum of enrolled people is undefined, which gives the
None
value back. Since the it is directly used in a subtraction, django gives a 500 server error.The text was updated successfully, but these errors were encountered: