divide by 0???

This commit is contained in:
Cyberes 2023-09-28 03:46:01 -06:00
parent 59f2aac8ad
commit 315d42bbc5
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ def jsonify_pretty(json_dict: Union[list, dict], status=200, indent=4, sort_keys
def round_up_base(n, base): def round_up_base(n, base):
if base == 0:
print('round_up_base DIVIDE BY ZERO ERROR????', n, base)
return 0
return math.ceil(n / base) * base return math.ceil(n / base) * base