mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-21 14:57:42 +00:00
Partial fix for mypy issues
This commit is contained in:
@@ -28,6 +28,7 @@ class APISolarConditionsHandler(tornado.web.RequestHandler):
|
||||
|
||||
def get(self) -> None:
|
||||
try:
|
||||
assert self._solar_conditions is not None, "initialize() must be called before get()"
|
||||
self.write(self._solar_conditions.to_json())
|
||||
self.set_status(200)
|
||||
self.set_header("Cache-Control", "no-store")
|
||||
|
||||
Reference in New Issue
Block a user