From 700cfbd8ca5b21203f6a3443106b959c63104261 Mon Sep 17 00:00:00 2001 From: pks Date: Mon, 10 May 2021 19:44:06 +0200 Subject: fix --- weather-logger-receiver | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'weather-logger-receiver') diff --git a/weather-logger-receiver b/weather-logger-receiver index 209c961..5f7cd1b 100755 --- a/weather-logger-receiver +++ b/weather-logger-receiver @@ -46,8 +46,7 @@ def add_data_to_db(data, handle, db_connection): db_connection.commit() -def loop(config, serial_connection, db_connection, logger): - known_devices = config["known_devices"][config["active_location"]] +def loop(known_devices, serial_connection, db_connection, logger): while True: logger.info("(Re-)Starting receiver loop") @@ -139,6 +138,6 @@ if __name__ == "__main__": try: loop(known_devices, serial_connection, db_connection, logger) except Exception as e: - logger.error(f"Exception: '{e}'") + logger.error(f"Exception: {e}") finally: shutdown(config, serial_connection, db_connection, logger) -- cgit v1.2.3