Skip to content

Commit ef1f6f7

Browse files
committed
Fix lint
1 parent b65f084 commit ef1f6f7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/otel_packaging.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
import os
16-
from subprocess import CalledProcessError
1716

1817
import tomli
1918
from requests import get
@@ -31,9 +30,9 @@ def get_instrumentation_packages():
3130

3231
error = f"Could not get version for package {pkg}"
3332
try:
34-
response = get(f"https://pypi.org/pypi/{pkg}/json")
33+
response = get(f"https://pypi.org/pypi/{pkg}/json", timeout=10)
3534

36-
except Exception as exc:
35+
except Exception:
3736
print(error)
3837
continue
3938

0 commit comments

Comments
 (0)