~fabrixxm/confy#18: 
ZeroDivisionError when event duration is zero

When an event has duration zero because the start and end times are identical, ZeroDivisionError's are raised repeatedly for the corresponding EventActionRow:

Traceback (most recent call last):
  File "/home/fortysixandtwo/install/lib/python3.9/site-packages/confy/widgets.py", line 130, in _on_draw
    prc = min(max(pos/dur, 0.0), 1.0)
ZeroDivisionError: float division by zero

Arguably a zero duration event does not make a lot of sense (or I'm simply lacking imagination). LibrePlanet 21 has a number of such events on sunday (16:55 - 16:55).

A patch should reach you any minute now :)

Status
RESOLVED FIXED
Submitter
~devrtz
Assigned to
No-one
Submitted
5 months ago
Updated
5 months ago
Labels
Bug

~fabrixxm REPORTED FIXED 5 months ago

Closed by commit 19c43436

Register here or Log in to comment, or comment via email.