Skip to content

Commit

Permalink
Ruff: Fix for bump to 0.9.6 #11759 (#11768)
Browse files Browse the repository at this point in the history
* Ruff: Fix for bump to 0.9.5 #11759

* fix

* update

* update

* update

* Aktualisieren von requirements-lint.txt
  • Loading branch information
manuel-sommer authored Feb 16, 2025
1 parent c26ec17 commit 7f7a210
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dojo/api_v2/exception_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def custom_exception_handler(exc, context):
# There is no standard error response, so we assume an unexpected
# exception. It is logged but no details are given to the user,
# to avoid leaking internal technical information.
logger.exception(exc)
logger.error(exc)
response = Response()
response.status_code = HTTP_500_INTERNAL_SERVER_ERROR
response.data = {}
Expand All @@ -63,6 +63,6 @@ def custom_exception_handler(exc, context):
else:
# HTTP status code 500 or higher are technical errors.
# They get logged and we don't change the response.
logger.exception(exc)
logger.error(exc)

return response
4 changes: 2 additions & 2 deletions dojo/jira_link/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def prepare_jira_issue_fields(
def add_jira_issue(obj, *args, **kwargs):
def failure_to_add_message(message: str, exception: Exception, _: Any) -> bool:
if exception:
logger.exception(exception)
logger.error(exception)
logger.error(message)
log_jira_alert(message, obj)
return False
Expand Down Expand Up @@ -943,7 +943,7 @@ def update_jira_issue_for_finding_group(finding_group, *args, **kwargs):
def update_jira_issue(obj, *args, **kwargs):
def failure_to_update_message(message: str, exception: Exception, obj: Any) -> bool:
if exception:
logger.exception(exception)
logger.error(exception)
logger.error(message)
log_jira_alert(message, obj)
return False
Expand Down
2 changes: 1 addition & 1 deletion dojo/product/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ def delete_api_scan_configuration(request, pid, pascid):

@user_is_authorized(Product_Group, Permissions.Product_Group_Edit, "groupid")
def edit_product_group(request, groupid):
logger.exception(groupid)
logger.error(groupid)
group = get_object_or_404(Product_Group, pk=groupid)
groupform = Edit_Product_Group_Form(instance=group)

Expand Down
2 changes: 1 addition & 1 deletion requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruff==0.9.4
ruff==0.9.6

0 comments on commit 7f7a210

Please sign in to comment.