Skip to content

Commit 8e37366

Browse files
Copilotgladjohn
andcommitted
Fix new CodeQL alert #87: remove tainted result from print in failure path
Co-authored-by: gladjohn <90415114+gladjohn@users.noreply.github.com>
1 parent faf07de commit 8e37366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/msi_v2_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def acquire_and_use_token():
6868
).json()
6969
print("API call result:", json.dumps(api_result, indent=2))
7070
else:
71-
print("Token acquisition failed", result) # Examine result["error_description"] etc. to diagnose error
71+
print("Token acquisition failed") # Examine result["error_description"] etc. to diagnose error
7272

7373

7474
if __name__ == "__main__":

0 commit comments

Comments
 (0)