From 86ff787aed0723c39278e277ee6fd449ab7c273d Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 29 Sep 2022 16:39:30 +0100 Subject: [PATCH] EDDNSender: Convert all of a legacy file * I had a `break` in there to only convert the first message. * Also collapsed the assignment to `cmdr, msg` to not go via `j`. --- plugins/eddn.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index b71233c6..9a08bdb2 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -260,10 +260,8 @@ class EDDNSender: filename = config.app_dir_path / 'replay.jsonl' with open(filename, 'r+', buffering=1) as replay_file: for line in replay_file: - j = json.loads(line) - cmdr, msg = j + cmdr, msg = json.loads(line) self.add_message(cmdr, msg) - break except FileNotFoundError: pass