]> gitweb.fluxo.info Git - ckandumper.git/commitdiff
Minor fix
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 22 May 2019 17:06:02 +0000 (14:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 22 May 2019 17:06:02 +0000 (14:06 -0300)
ckandumper

index 3a02ded4369a0e3c4558c15ae2e4f83137ada65d..c5fb5896f2e7f938ad3e528636b2a0da4b0f11d6 100755 (executable)
@@ -38,7 +38,7 @@ class DownloadMultiple:
         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))
@@ -365,6 +365,6 @@ if __name__ == "__main__":
     except KeyboardInterrupt as e:
         print(e)
         exit(1)
-    except CalledProcessError as e:
+    except subprocess.CalledProcessError as e:
         print(e)
         exit(1)