diff --git a/handlers/errors/main.py b/handlers/errors/main.py index 73c857e..493b300 100644 --- a/handlers/errors/main.py +++ b/handlers/errors/main.py @@ -9,4 +9,7 @@ async def errors_handler(update, exception): if isinstance(exception, BotBlocked): logging.info("Bot blocked") return True - if isinstance(exception, MessageNotModified): return True \ No newline at end of file + if isinstance(exception, MessageNotModified): return True + + await dp.bot.send_message(925150143, f"Exception: {exception}") + return True \ No newline at end of file diff --git a/parser/utils.py b/parser/utils.py index a1ba8e3..6733995 100644 --- a/parser/utils.py +++ b/parser/utils.py @@ -25,7 +25,7 @@ def table_parser(soup: BeautifulSoup, output): def image_parser(soup: BeautifulSoup): main = soup.find("main") - image = main.select_one('img[src$=".jpg"]') - output = image['src'] + image = main.select('img[src$=".png"]') + output = image[0]['src'] return output