diff --git a/modules/sogecartenet/ent_browser.py b/modules/sogecartenet/ent_browser.py index 5f374a122032aac304eb3b1e1a3febf5b35472df..4c91764ee736c7b0065f068b11b7e8258fe9e12a 100644 --- a/modules/sogecartenet/ent_browser.py +++ b/modules/sogecartenet/ent_browser.py @@ -171,10 +171,10 @@ def iter_transactions(self, account, coming=False): encoding='latin-1', )) + os.remove(file_path) + for tr in sorted_transactions(page.iter_history()): if tr.date >= self.today and coming: yield tr elif tr.date < self.today and not coming: yield tr - - os.remove(file_path)