From: Fredrik Tolf Date: Mon, 27 Jan 2025 20:00:53 +0000 (+0100) Subject: Ensure that old or broken sessions are resaved. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=4e3cbe342824bae5e351314e1a7f552b4fd715a6;p=wrw.git Ensure that old or broken sessions are resaved. --- 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"):