From ff00b4e4f54478ef56ec13455bab1dd860ae63b5 Mon Sep 17 00:00:00 2001 From: deajan Date: Thu, 9 Jan 2025 23:53:06 +0100 Subject: [PATCH] GUI: Fix legacy Python 3.9 should not use msgspec.Struct, #112 --- npbackup/restic_wrapper/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/npbackup/restic_wrapper/__init__.py b/npbackup/restic_wrapper/__init__.py index 9c8ade5..24b7ed8 100644 --- a/npbackup/restic_wrapper/__init__.py +++ b/npbackup/restic_wrapper/__init__.py @@ -7,8 +7,8 @@ __intname__ = "npbackup.restic_wrapper" __author__ = "Orsiris de Jong" __copyright__ = "Copyright (C) 2022-2025 NetInvent" __license__ = "GPL-3.0-only" -__build__ = "2024121001" -__version__ = "2.3.4" +__build__ = "2025010901" +__version__ = "2.3.5" from typing import Tuple, List, Optional, Callable, Union @@ -734,6 +734,9 @@ class ResticRunner: not is_first_line and operation == "ls" and self.struct_output + # Don't try to use ls_decoder with Python 3.9 as it will fail with + # msgspec.ValidationError: Expected `LsNode`, got `dict` + and not IS_LEGACY ): js["output"].append(ls_decoder.decode(line)) else: