From 9b939b30a440879779a99f587266662cf4738147 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 7 Nov 2022 08:09:04 +0200 Subject: [PATCH] Revert "fixed 500" This reverts commit ee4c534a92e2686177c60ef904f852825a015b9e. --- files/helpers/regex.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index c15e29ade..b1c60514d 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -123,8 +123,6 @@ def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str], return match_str else: repl = replace_with[match_str.lower()] - if not isinstance(repl, str): - repl = random.choice(repl) return repl if not upper or "