Roald87 / GraceDB

Telegram bot which you can use to get information on gravitational wave events from LIGO/Virgo.
Apache License 2.0
7 stars 0 forks source link

Detector status doesn't work when there is an unknow state #3

Closed Roald87 closed 5 years ago

Roald87 commented 5 years ago

Command /status gives no reply when a detector status is in an state without a time.

  File "/root/Projects/GraceDB/gracebot/detector.py", line 44, in __post_init__
    self.duration = self._convert_to_time(duration)
  File "/root/Projects/GraceDB/gracebot/detector.py", line 67, in _convert_to_time
    hours, minutes = time_string.split(":")