In Interval.py, there are 3 except statements without specified exceptions (and one in node.py).
In the linked Interval.py line, this should probably be an AttributeError. I imagine the naked except statements work well enough since the try blocks are so tight, but equipping all excepts with exceptions is still a good thing to do (naked excepts catch KeyboardInterrupt etc.). Also helps in understanding the code's intention ("points aka normal scalar numeric types do not have an attributebegin or end, therefore execute the except block content").
If you agree with the above and I did not get this wrong, I can create a PR for this.
In
Interval.py
, there are 3except
statements without specified exceptions (and one innode.py
).In the linked
Interval.py
line, this should probably be anAttributeError
. I imagine the nakedexcept
statements work well enough since thetry
blocks are so tight, but equipping allexcepts
with exceptions is still a good thing to do (nakedexcept
s catchKeyboardInterrupt
etc.). Also helps in understanding the code's intention ("points
aka normal scalar numeric types do not have an attributebegin
orend
, therefore execute theexcept
block content").If you agree with the above and I did not get this wrong, I can create a PR for this.