From 4e3cbe342824bae5e351314e1a7f552b4fd715a6 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Mon, 27 Jan 2025 21:00:53 +0100 Subject: [PATCH] Ensure that old or broken sessions are resaved. --- wrw/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrw/session.py b/wrw/session.py index 08120cb..c845617 100644 --- a/wrw/session.py +++ b/wrw/session.py @@ -83,6 +83,7 @@ class session(object): # Only for the old session format; remove me in due time. for k, v in st: self.__dict__[k] = v + self.dirtyp = True else: self.dict = {} self.dctl = set() @@ -93,6 +94,7 @@ class session(object): try: k, v = itemunpickler(io.BytesIO(item), session=self).load() except Exception: + self.dirtyp = True continue self.dict[k] = v if hasattr(v, "sessdirty"): -- 2.39.5