From 15b7c5091a81fc319cb8af4740d718162cb660a0 Mon Sep 17 00:00:00 2001 From: dirkf Date: Mon, 30 Jan 2023 01:36:28 +0000 Subject: [PATCH] Apply suggestions from code review --- youtube_dl/downloader/external.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index d89eec2ef..f69d382c0 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -212,7 +212,7 @@ class Aria2pFD(ExternalFD): try: import aria2p __avail = True - except ModuleNotFoundError: + except ImportError: __avail = False @classmethod