From 40d12bf5a4c6f6975b9c8ff3851a3754bbf542c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 15 Aug 2022 17:59:42 +0200 Subject: [PATCH] We can't save a file, where is opend in round-trip mode, in safe mode --- scan_to_paperless/scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan_to_paperless/scan.py b/scan_to_paperless/scan.py index 3ae87e1e..a89f5edc 100755 --- a/scan_to_paperless/scan.py +++ b/scan_to_paperless/scan.py @@ -240,7 +240,7 @@ def image_match(image_name: str) -> int: "images": images, "args": args_, } - yaml = YAML(typ="safe") + yaml = YAML() yaml.default_flow_style = False with open( os.path.join(os.path.dirname(root_folder), "config.yaml"), "w", encoding="utf-8"