Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
elreplicante committed Jul 8, 2022
1 parent 0063903 commit edc94fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/QueueProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ def subscribe_to_extractions_tasks_queue(self):
if __name__ == "__main__":
try:
sentry_sdk.init(
os.environ.get('SENTRY_OCR_DSN'),
os.environ.get("SENTRY_OCR_DSN"),
traces_sample_rate=0.1,
environment=os.environ.get('ENVIRONMENT', 'development'),
integrations=[RedisIntegration()]
)
environment=os.environ.get("ENVIRONMENT", "development"),
integrations=[RedisIntegration()],
)
except Exception:
pass

Expand Down
7 changes: 4 additions & 3 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@

try:
sentry_sdk.init(
os.environ.get('SENTRY_OCR_DSN'),
os.environ.get("SENTRY_OCR_DSN"),
traces_sample_rate=0.1,
environment=os.environ.get('ENVIRONMENT', 'development')
)
environment=os.environ.get("ENVIRONMENT", "development"),
)
app.add_middleware(SentryAsgiMiddleware)
except Exception:
pass


@app.get("/info")
async def info():
logger.info("Ocr PDF info endpoint")
Expand Down

0 comments on commit edc94fc

Please sign in to comment.