Skip to content

Commit b122368

Browse files
author
Thomas Kruse
committed
more robust errors
1 parent 1e3cc9c commit b122368

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def handle_git(self):
7272
self.wfile.write(body)
7373

7474
if stderr_data:
75-
print(f"Git Error: {stderr_data.decode()}", file=sys.stderr)
75+
print(f"Git Error: {stderr_data.decode('utf-8', errors='backslashreplace')}", file=sys.stderr)
7676

7777
print(f"")
7878
print(f"--- Filesystem git HTTP bridge ---")

0 commit comments

Comments
 (0)