Fix DUO122 warnings

This commit is contained in:
Shreya 2021-04-22 16:04:25 +05:30 committed by Mike Salvatore
parent af381e062f
commit b0be14193d
1 changed files with 1 additions and 1 deletions

View File

@ -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")