From 646a9220c9a10ac1d27d41e272e2de5780a80247 Mon Sep 17 00:00:00 2001 From: Brian Phillips Date: Thu, 1 Jan 2026 12:01:23 -0700 Subject: [PATCH] Fix for UnicodeDecodeError on Macbook added `load_dotenv=False` to app.run to resolve UnicodeDecodeError --- app.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 0f626c5..74e8301 100644 --- a/app.py +++ b/app.py @@ -349,4 +349,11 @@ def main() -> None: print("Press Ctrl+C to stop") print() - app.run(host=args.host, port=args.port, debug=args.debug, threaded=True) +# Avoid loading a global ~/.env when running the script directly. + app.run( + host=args.host, + port=args.port, + debug=args.debug, + threaded=True, + load_dotenv=False, + ) \ No newline at end of file