Skip to content

Commit 59919f6

Browse files
authored
Merge pull request #145 from unicef/bugfix/sentry-id-not-generating
Bugfix/sentry id not generating
2 parents 6285196 + 576155f commit 59919f6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ ignore = [
7676
"SLF001", # Private member accessed:
7777
"TD003", # Missing issue link for this TODO
7878
"TID252", # Prefer absolute imports over relative imports from parent modules
79+
"TRY400", # Use logging.exception instead of logging.error in exception handlers
7980
"TRY401", # Redundant exception object included in `logging.exception` call
8081
"TRY003", # Avoid specifying long messages outside the exception class
8182
"UP031", # Use format specifiers instead of percent format

src/country_workspace/workspaces/admin/cleaners/validate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def validate_queryset(queryset: QuerySet[Model], **kwargs: Any) -> dict[str, int
2121
else:
2222
invalid += 1
2323
except Exception as e: # pragma: no cover
24-
logger.exception(e)
24+
logger.error(e)
2525
raise
2626

2727
return {"valid": valid, "invalid": invalid}
@@ -38,7 +38,7 @@ def validate_program(job: AsyncJob) -> dict[str, int]:
3838
else:
3939
invalid += 1
4040
except Exception as e: # pragma: no cover
41-
logger.exception(e)
41+
logger.error(e)
4242
raise
4343

4444
return {"valid": valid, "invalid": invalid}

0 commit comments

Comments
 (0)