@NateTanner/

error_handler

Python

No description

fork
loading
Files
  • main.py
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
import sentry_sdk
from sentry_sdk import capture_exception

def error_report(error, name="None"):
	sentry_sdk.init("https://[email protected]/1429670", server_name=name)
	capture_exception(error)
	print("This error has been successfully reported.")