From 6ec120061116359150e59e20ae2219a32019f620 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 8 Feb 2023 04:34:44 +0200 Subject: [PATCH] fix roulette --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index f5133a0ee..f6aaae446 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -354,7 +354,7 @@ def handle_youtube_links(url): def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys=False, torture=False, snappy=False, chat=False, blackjack=None): sanitized = sanitized.strip() - if blackjack and execute_blackjack(g.v, None, sanitized, blackjack): + if hasattr(g, 'v') and blackjack and execute_blackjack(g.v, None, sanitized, blackjack): sanitized = 'g' sanitized = utm_regex.sub('', sanitized)