From 1c8572e4d440e139366ea8b6a810f28255b94652 Mon Sep 17 00:00:00 2001 From: xereeto Date: Sat, 9 Mar 2024 18:07:53 +0000 Subject: [PATCH] suppress blessed warnings --- wordle.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wordle.py b/wordle.py index 5afb9ab..04a5cd4 100644 --- a/wordle.py +++ b/wordle.py @@ -8,7 +8,9 @@ import possible import os import random -term = blessed.Terminal() +with warnings.catch_warnings(): + warnings.simplefilter("ignore") + term = blessed.Terminal() unicode=False eightColor=True