diff --git a/tools/azure-sdk-tools/packaging_tools/code_report.py b/tools/azure-sdk-tools/packaging_tools/code_report.py
index <HASH>..<HASH> 100644
--- a/tools/azure-sdk-tools/packaging_tools/code_report.py
+++ b/tools/azure-sdk-tools/packaging_tools/code_report.py
@@ -15,7 +15,7 @@ from typing import Dict, Any, Optional
 try:
     # If I'm started as a module __main__
     from .venvtools import create_venv_with_package
-except ModuleNotFoundError:
+except (ModuleNotFoundError, ImportError) as e:
     # If I'm started by my main directly
     from venvtools import create_venv_with_package
Update code_report to support python <I> (#<I>)