From ea084cad16b660d74922f6ba81962c6fb3ad405e Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 4 Dec 2024 13:20:16 +0300 Subject: refactor: make pylint fixes. --- gn3/api/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/api/general.py') diff --git a/gn3/api/general.py b/gn3/api/general.py index fcaf21b..8b57f23 100644 --- a/gn3/api/general.py +++ b/gn3/api/general.py @@ -91,7 +91,7 @@ def stream(): output_file = os.path.join(current_app.config.get("TMPDIR"), f"{run_id}.txt") seek_position = int(request.args.get("peak", 0)) - with open(output_file) as file_handler: + with open(output_file, encoding="utf-8") as file_handler: # read to the last position default to 0 file_handler.seek(seek_position) return jsonify({"data": file_handler.readlines(), -- cgit 1.4.1