Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,7 @@
"""
context = context or {}
next_counter = delay_request_counter + 1
demisto.debug("Dummy log")

context["next_request_time"] = next_request_time
context["delay_request_counter"] = next_counter
Expand Down Expand Up @@ -1592,6 +1593,7 @@
tag = json.loads(arg)
tag_name = next(iter(tag))
tag_value = tag[tag_name]
tag_value2 = tag[tag_name]

Check failure on line 1596 in Packs/ApiModules/Scripts/MicrosoftApiModule/MicrosoftApiModule.py

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Ruff (F841)

Packs/ApiModules/Scripts/MicrosoftApiModule/MicrosoftApiModule.py:1596:9: F841 Local variable `tag_value2` is assigned to but never used
return f"tagName eq '{tag_name}' and tagValue eq '{tag_value}'"
except Exception as e:
raise Exception(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ def _parse_email_as_incident(self, email, overwrite_rate_limit_retry=False):
"""
# there are situations where the 'body' key won't be returned from the api response, hence taking the uniqueBody
# in those cases for both html/text formats.
demisto.debug("dummy log to run pipeline.")

def body_extractor(email, parsed_email):
email_content_as_html, email_content_as_text = self.get_email_content_as_text_and_html(email)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2090,9 +2090,12 @@
}
command = demisto.command()
LOG(f"Command being called is {command}")
demisto.debug("Another dummy log")
try:
auth_code = params.get("auth_code", {}).get("password")
redirect_uri = params.get("redirect_uri")
redirect_uri2 = params.get("redirect_uri")

Check failure on line 2097 in Packs/MicrosoftGraphSecurity/Integrations/MicrosoftGraphSecurity/MicrosoftGraphSecurity.py

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Ruff (F841)

Packs/MicrosoftGraphSecurity/Integrations/MicrosoftGraphSecurity/MicrosoftGraphSecurity.py:2097:9: F841 Local variable `redirect_uri2` is assigned to but never used

grant_type = AUTHORIZATION_CODE if auth_code and redirect_uri else CLIENT_CREDENTIALS

client: MsGraphClient = MsGraphClient(
Expand Down
Loading