Update sentry.
This commit is contained in:
		
							parent
							
								
									fcd91b4321
								
							
						
					
					
						commit
						3759306e38
					
				| @ -39,7 +39,8 @@ dependencies = [ | |||||||
|     "Pillow", |     "Pillow", | ||||||
|     "pillow-heif", |     "pillow-heif", | ||||||
|     "IP2Location", |     "IP2Location", | ||||||
|     "bleach" |     "bleach", | ||||||
|  |     "sentry-sdk" | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| [tool.setuptools.packages.find] | [tool.setuptools.packages.find] | ||||||
|  | |||||||
| @ -9,6 +9,8 @@ from snek.shell import Shell | |||||||
| from snek.app import Application | from snek.app import Application | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| @click.group() | @click.group() | ||||||
| def cli(): | def cli(): | ||||||
|     pass |     pass | ||||||
| @ -122,6 +124,12 @@ def shell(db_path): | |||||||
|     Shell(db_path).run() |     Shell(db_path).run() | ||||||
| 
 | 
 | ||||||
| def main(): | def main(): | ||||||
|  |     try: | ||||||
|  |         import sentry_sdk | ||||||
|  |         sentry_sdk.init("https://ab6147c2f3354c819768c7e89455557b@gt.molodetz.nl/1") | ||||||
|  |     except ImportError: | ||||||
|  |         print("Could not import sentry_sdk") | ||||||
|  | 
 | ||||||
|     cli() |     cli() | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user