From 3bf1167e08ba0c68f89b2ad5a17a36ae1c34fade Mon Sep 17 00:00:00 2001 From: eyeonus Date: Tue, 23 Apr 2024 19:00:09 -0600 Subject: [PATCH] fix: No such file or directory error listings_path, not listings_file --- tradedangerous/plugins/eddblink_plug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tradedangerous/plugins/eddblink_plug.py b/tradedangerous/plugins/eddblink_plug.py index 7a14b89b..0df89feb 100644 --- a/tradedangerous/plugins/eddblink_plug.py +++ b/tradedangerous/plugins/eddblink_plug.py @@ -267,7 +267,7 @@ def importListings(self, listings_file): stationItems = dict(self.execute('SELECT station_id, UNIXEPOCH(modified) FROM StationItem').fetchall()) self.tdenv.DEBUG0("Processing entries...") - with listings_file.open("r", encoding="utf-8", errors="ignore") as fh: + with listings_path.open("r", encoding="utf-8", errors="ignore") as fh: prog = pbar.Progress(total, 50) listings = csv.DictReader(fh)