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`.
This commit is contained in:
Athanasius authored and Athanasius committed 2022-11-22 14:02:05 +00:00
1 parent 089c33002c
commit 86ff787aed
1 file changed
+1 -3
+1 -3
View File
@@ -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