summaryrefslogtreecommitdiff
path: root/src/sound_sensor_server.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-01-04 03:44:07 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-01-04 03:44:07 +0300
commitd549f428cbbd54c49a90f92928e670d373c4a0d9 (patch)
treeb895a216a37483c082af6f20b2d6aef8560db7b3 /src/sound_sensor_server.py
parent00de2339b4a61921c4b8789883e5c77b4528a60b (diff)
config: use get_addr() instead of parse_addr(config[...])
Diffstat (limited to 'src/sound_sensor_server.py')
-rwxr-xr-xsrc/sound_sensor_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound_sensor_server.py b/src/sound_sensor_server.py
index c63d14a..aa62608 100755
--- a/src/sound_sensor_server.py
+++ b/src/sound_sensor_server.py
@@ -190,7 +190,7 @@ if __name__ == '__main__':
finished_handler=partial(record_finished, MediaNodeType.CAMERA))
try:
- server = SoundSensorServer(parse_addr(config['server']['listen']), HitHandler)
+ server = SoundSensorServer(config.get_addr('server.listen'), HitHandler)
server.run()
except KeyboardInterrupt:
interrupted = True