[F] Fix matplotlib warning
This commit is contained in:
@@ -2,6 +2,7 @@ import warnings
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
import matplotlib
|
||||||
from telegram import Update, Message
|
from telegram import Update, Message
|
||||||
from telegram.ext import Updater, CallbackContext, Dispatcher, CommandHandler, MessageHandler, \
|
from telegram.ext import Updater, CallbackContext, Dispatcher, CommandHandler, MessageHandler, \
|
||||||
Filters
|
Filters
|
||||||
@@ -9,6 +10,7 @@ from telegram.ext import Updater, CallbackContext, Dispatcher, CommandHandler, M
|
|||||||
from ina_main import *
|
from ina_main import *
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
matplotlib.use('agg')
|
||||||
|
|
||||||
|
|
||||||
def r(u: Update, msg: str, md=True):
|
def r(u: Update, msg: str, md=True):
|
||||||
|
|||||||
Reference in New Issue
Block a user