You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one has an AllocationAttribute of a type which has_usage and that attribute is set to 0, the allocation page will raise divide by zero exceptions. The web pages should not crash.
The text was updated successfully, but these errors were encountered:
payerle
added a commit
to payerle/coldfront
that referenced
this issue
Nov 10, 2021
…s_usage=True
This adds a try/except block in generate_guauge_data_from_usage() (why
the misspelling?) to catch for divide by zero errors. If value=0, we
set the percent used to 100% (arbitrary, but better than an exception)
If one has an AllocationAttribute of a type which has_usage and that attribute is set to 0, the allocation page will raise divide by zero exceptions. The web pages should not crash.
The text was updated successfully, but these errors were encountered: