if '/' in wget_bin and not os.path.exists(wget_bin):
raise FileNotFoundError('Wget not found in path ' + wget_bin + '; please install it first.')
else:
- result = subprocess.check_call(wget_bin + ' --help', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, shell=True)
+ subprocess.check_call(wget_bin + ' --help', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, shell=True)
self.limit_rate = limit_rate
self.limit_concurrent = asyncio.Semaphore(int(limit_concurrent))
except KeyboardInterrupt as e:
print(e)
exit(1)
- except CalledProcessError as e:
+ except subprocess.CalledProcessError as e:
print(e)
exit(1)