From 1ef6d8202c7448ad3d7e3492f4143f1ffd208ef2 Mon Sep 17 00:00:00 2001 From: nex Date: Fri, 10 Nov 2023 23:15:06 +0000 Subject: [PATCH] Change other.py to rich print --- cogs/other.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index 69c3d75..647a872 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -3,7 +3,6 @@ import functools import glob import io import json -import logging import typing import math @@ -31,10 +30,11 @@ import httpx import psutil import pytesseract import pyttsx3 -from discord.ext import commands, pages +from discord.ext import commands from dns import asyncresolver from PIL import Image from rich.tree import Tree +from rich import print from selenium import webdriver from selenium.common.exceptions import WebDriverException from selenium.webdriver.chrome.options import Options as ChromeOptions @@ -62,7 +62,7 @@ try: VOICES = [x.id for x in _engine.getProperty("voices")] del _engine except Exception as _pyttsx3_err: - print("Failed to load pyttsx3:", _pyttsx3_err, file=sys.stderr) + print("Failed to load pyttsx3: %s" % _pyttsx3_err, file=sys.stderr) pyttsx3 = None VOICES = []