From 5545cdbce5cce4f85f981a92d6b6677669a46122 Mon Sep 17 00:00:00 2001 From: Simon Jones Date: Fri, 13 Oct 2023 09:58:43 -0400 Subject: [PATCH] Revert "fix: Changed encoding to utf-8 if default fails" --- chasten/filesystem.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chasten/filesystem.py b/chasten/filesystem.py index 3755ecc7..5d12e249 100644 --- a/chasten/filesystem.py +++ b/chasten/filesystem.py @@ -195,11 +195,7 @@ def write_chasten_results( results_path_with_file = results_path / complete_results_file_name results_json = results_content.model_dump_json(indent=2) # use the built-in method with pathlib Path to write the JSON contents - try: - results_path_with_file.write_text(results_json) - except: # noqa: E722 - results_path_with_file.write_text(results_json, "utf-8") - + results_path_with_file.write_text(results_json) # return the name of the created file for diagnostic purposes return complete_results_file_name # saving was not enabled and thus this function cannot