for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
Processes all exceptions that occur in runtime.
import logging
from pincer import Cog, Client
class ErrorHandler(Cog):
@Client.event
async def on_error(self, error: Exception, *args, **kwargs):
# You should probably handle this more specific
logging.error(error)