diff --git a/pyproject.toml b/pyproject.toml index f4e32de..a41d4bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,8 @@ dependencies = [ "Pillow", "pillow-heif", "IP2Location", - "bleach" + "bleach", + "sentry-sdk" ] [tool.setuptools.packages.find] diff --git a/src/snek/__main__.py b/src/snek/__main__.py index 161f469..53f9751 100644 --- a/src/snek/__main__.py +++ b/src/snek/__main__.py @@ -9,6 +9,8 @@ from snek.shell import Shell from snek.app import Application + + @click.group() def cli(): pass @@ -122,6 +124,12 @@ def shell(db_path): Shell(db_path).run() def main(): + try: + import sentry_sdk + sentry_sdk.init("https://ab6147c2f3354c819768c7e89455557b@gt.molodetz.nl/1") + except ImportError: + print("Could not import sentry_sdk") + cli()