Repository: amogorkon/justuse (language: python)

Issue:
Mass testing with 80.5% pass



Discussion / hints:

Fix patch:
diff --git a/src/use/use.py b/src/use/use.py
index d2141670..a83b1445 100755
--- a/src/use/use.py
+++ b/src/use/use.py
@@ -778,8 +778,6 @@ def _auto_install(
     except (ImportError, zipimport.ZipImportError) as zerr:
         if isinstance(zerr.__context__, ModuleNotFoundError):
             missing_modules = zerr.__context__
-    except ModuleNotFoundError as zerr:
-        missing_modules = zerr
     except KeyError:
         if "DEBUG" in os.environ or config["debugging"]:
             log.debug(traceback.format_exc())


Test patch:
diff --git a/tests/mass/use.py b/tests/mass/use.py
index d2141670..a83b1445 100755
--- a/tests/mass/use.py
+++ b/tests/mass/use.py
@@ -778,8 +778,6 @@ def _auto_install(
     except (ImportError, zipimport.ZipImportError) as zerr:
         if isinstance(zerr.__context__, ModuleNotFoundError):
             missing_modules = zerr.__context__
-    except ModuleNotFoundError as zerr:
-        missing_modules = zerr
     except KeyError:
         if "DEBUG" in os.environ or config["debugging"]:
             log.debug(traceback.format_exc())