From cce2ff20f8e1215652ce221e64f3e83ebbb5ce17 Mon Sep 17 00:00:00 2001 From: Brook Gagnon Date: Sat, 11 May 2024 18:56:00 +0000 Subject: [PATCH] one more raw string needed (re: invalid escape sequence) --- obplayer/httpadmin/httpadmin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obplayer/httpadmin/httpadmin.py b/obplayer/httpadmin/httpadmin.py index 343898b..1a352e6 100644 --- a/obplayer/httpadmin/httpadmin.py +++ b/obplayer/httpadmin/httpadmin.py @@ -607,7 +607,7 @@ def req_export_alert_log(self, request): output = [] log_data = obplayer.Log.get_log() for line in log_data: - if re.search("\[alerts\]", line): + if re.search(r"\[alerts\]", line): output.append(line) res = httpserver.Response() res.add_header("Content-Disposition", "attachment; filename=obalerts.txt")