Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 054f562

Browse files
committedMay 8, 2025·
correcting the non critical lint error
1 parent 27aa2f2 commit 054f562

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎py/torch_tensorrt/dynamo/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from dataclasses import fields, replace
1010
from enum import Enum
1111
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
12-
from urllib.error import URLError
1312

1413
import numpy as np
1514
import sympy
@@ -853,7 +852,7 @@ def download_plugin_lib_path(py_version: str, platform: str) -> str:
853852
return plugin_lib_path
854853
try:
855854
import zipfile
856-
except:
855+
except ImportError as e:
857856
raise ImportError(
858857
"zipfile module is required but not found. Please install zipfile"
859858
)
@@ -888,7 +887,7 @@ def load_tensorrt_llm() -> bool:
888887
return False
889888
else:
890889
# this is used as the default py version
891-
py_version = f"cp312"
890+
py_version = "cp312"
892891
platform = Platform.current_platform()
893892

894893
platform = str(platform).lower()

0 commit comments

Comments
 (0)