Skip to content

Commit 2e32f66

Browse files
committed
Broaden the exception catching clause when getting license file template, due to unknown exception being raised on PyPy
1 parent 7704bf1 commit 2e32f66

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

repo_helper/cli/commands/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
# 3rd party
3434
import click
3535
import jinja2
36-
import requests
3736
from apeye.requests_url import RequestsURL
3837
from consolekit.options import force_option
3938
from domdf_python_tools.paths import PathPlus, maybe_make
@@ -177,7 +176,8 @@ def init_repo(repo_path: pathlib.Path, templates: jinja2.Environment) -> List[st
177176

178177
try:
179178
response = license_url.get()
180-
except requests.exceptions.RequestException:
179+
except Exception:
180+
# except requests.exceptions.RequestException:
181181
if attempt == 1:
182182
continue
183183
else:

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jinja2>=2.11.2
1414
natsort>=7.1.0
1515
packaging>=20.4
1616
pre-commit>=2.7.1
17-
requests>=2.25.1
1817
ruamel-yaml>=0.16.12
1918
shippinglabel>=0.8.2
2019
southwark>=0.7.1

0 commit comments

Comments
 (0)