mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-29 02:32:05 +00:00
Document use of the web interface, plus some other changes. Closes #152
This commit is contained in:
@@ -138,6 +138,7 @@ class ActivityName(str, Enum):
|
||||
BIWOTA = "BIWOTA"
|
||||
COTA = "COTA"
|
||||
PGA = "PGA"
|
||||
JOTA = "JOTA"
|
||||
TOILETS = "Toilets"
|
||||
|
||||
def __str__(self):
|
||||
|
||||
@@ -52,7 +52,10 @@ class StatusReporter:
|
||||
"""Thread entry point: report immediately on startup, then on each interval until stopped"""
|
||||
|
||||
while True:
|
||||
self._report()
|
||||
try:
|
||||
self._report()
|
||||
except Exception:
|
||||
logger.exception("Exception in Status Reporter thread")
|
||||
if self._stop_event.wait(timeout=self._run_interval):
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user