compatibility with python 3.6 and lower (#1780)

main
Andrey Zhavoronkov 6 years ago committed by GitHub
parent 2a349d0243
commit 97b1005456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,6 +71,6 @@ def av_scan_paths(*paths):
if 'yes' == os.environ.get('CLAM_AV'):
command = ['clamscan', '--no-summary', '-i', '-o']
command.extend(paths)
res = subprocess.run(command, capture_output=True)
res = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if res.returncode:
raise ValidationError(res.stdout)
raise ValidationError(res.stdout)

Loading…
Cancel
Save