There will be maintenance performed on git.ligo.org, chat.ligo.org, containers.lig.org, and docs.ligo.org starting at 9am PDT on Tuesday 18th August 2020. There will be an extremely small period of downtime at the start of the maintenance window as various services are restarted. Please address any comments, questions, or concerns to computing-help@igwn.org.

segment.__contains__: fixed python implementation bug

need to catch actual error thrown when `int` given
parent d39c905f
......@@ -449,7 +449,7 @@ class segment(tuple):
"""
try:
a, b = other
except ValueError:
except (ValueError, TypeError):
return self[0] <= other < self[1]
else:
return (self[0] <= a) and (self[1] >= b)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment