BOM-2477: pylint warnings lint-amnesty (#27585)
This commit is contained in:
@@ -47,7 +47,7 @@ class Command(BaseCommand):
|
||||
course_dir = data_root / subdir
|
||||
|
||||
# Extract library archive
|
||||
tar_file = tarfile.open(archive_path)
|
||||
tar_file = tarfile.open(archive_path) # lint-amnesty, pylint: disable=consider-using-with
|
||||
try:
|
||||
safetar_extractall(tar_file, course_dir.encode('utf-8'))
|
||||
except SuspiciousOperation as exc:
|
||||
|
||||
Reference in New Issue
Block a user