From b0be14193d556fab3b1158e64b9bcda051a572a6 Mon Sep 17 00:00:00 2001 From: Shreya Date: Thu, 22 Apr 2021 16:04:25 +0530 Subject: [PATCH] Fix DUO122 warnings --- monkey/infection_monkey/exploit/struts2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/exploit/struts2.py b/monkey/infection_monkey/exploit/struts2.py index ff5b9887b..f29f6acac 100644 --- a/monkey/infection_monkey/exploit/struts2.py +++ b/monkey/infection_monkey/exploit/struts2.py @@ -52,7 +52,7 @@ class Struts2Exploiter(WebRCE): request = urllib.request.Request(url, headers=headers) try: return urllib.request.urlopen( - request, context=ssl._create_unverified_context() + request, context=ssl._create_unverified_context() # noqa: DUO122 ).geturl() except urllib.error.URLError: LOG.error("Can't reach struts2 server")