Skip to content

Commit 974d39d

Browse files
authored
fixed encoding error handling
1 parent a4a3149 commit 974d39d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wfc/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from wfc import notification, config, registry, paths, logger
99

1010
# TODO: Testmode toggle
11-
TESTMODE = True
11+
TESTMODE = False
1212

1313

1414
def _get_things_to_delete() -> (
@@ -122,7 +122,7 @@ def _handle_startup() -> None:
122122
os.path.exists(paths.LOG_PATH)
123123
and os.path.getsize(paths.LOG_PATH) > max_log_size_bytes
124124
):
125-
with open(paths.LOG_PATH, "w", encoding=config.ENCODING):
125+
with open(paths.LOG_PATH, "w", encoding=config.ENCODING, errors="ignore"):
126126
pass
127127

128128

0 commit comments

Comments
 (0)