Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcarneiro committed Mar 23, 2024
1 parent 413ab14 commit e9e3a9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yacron/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ async def report(

kwargs = {}
if config.get("maxStringLength"):
sentry_sdk.utils.MAX_STRING_LENGTH = config["maxStringLength"] # type:ignore
sentry_sdk.utils.MAX_STRING_LENGTH = ( # type:ignore
config["maxStringLength"]
)
if config.get("environment"):
kwargs["environment"] = config["environment"]
sentry_sdk.init(dsn=dsn, **kwargs)
Expand Down

0 comments on commit e9e3a9f

Please sign in to comment.