log all exceptions
This commit is contained in:
2
main.py
2
main.py
@@ -115,7 +115,7 @@ async def send_post(post: E621Post, tag_list: List[str]):
|
|||||||
parse_mode=ParseMode.HTML,
|
parse_mode=ParseMode.HTML,
|
||||||
reply_markup=markup)
|
reply_markup=markup)
|
||||||
await redis.sadd('e621:sent', post.id)
|
await redis.sadd('e621:sent', post.id)
|
||||||
except exceptions.TelegramAPIError as e:
|
except Exception as e:
|
||||||
logging.exception(e)
|
logging.exception(e)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user