Fix for UnicodeDecodeError on Macbook

added `load_dotenv=False` to app.run to resolve UnicodeDecodeError
This commit is contained in:
Brian Phillips
2026-01-01 12:01:23 -07:00
parent 03f639b79f
commit 646a9220c9
+8 -1
View File
@@ -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,
)