Skip to content

Commit 8034dd4

Browse files
committed
Trivial update for closing the urllib response
1 parent 8e1522b commit 8034dd4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/utils/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ def create_github_issue(err_msg, exc_msg):
210210
)
211211

212212
try:
213-
content = _urllib.request.urlopen(request, timeout=settings.TIMEOUT).read()
213+
response = _urllib.request.urlopen(request, timeout=settings.TIMEOUT)
214+
content = response.read()
215+
response.close()
214216
_ = json.loads(content)
215217

216218
duplicate = _["total_count"] > 0

src/utils/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def sys_argv_errors():
262262
DESCRIPTION = "The command injection exploiter"
263263
AUTHOR = "Anastasios Stasinopoulos"
264264
VERSION_NUM = "4.2"
265-
REVISION = "29"
265+
REVISION = "30"
266266
STABLE_RELEASE = False
267267
VERSION = "v"
268268
if STABLE_RELEASE:

0 commit comments

Comments
 (0)