Skip to content

Commit 2dace14

Browse files
Potential fix for pull request finding 'Empty except'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent b682f90 commit 2dace14

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/specify_cli/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4378,6 +4378,7 @@ def workflow_add(
43784378
try:
43794379
is_loopback = ip_address(url_host).is_loopback
43804380
except ValueError:
4381+
# Host is not an IP literal (e.g., a regular hostname); treat as non-loopback.
43814382
pass
43824383
if parsed_url.scheme != "https" and not (parsed_url.scheme == "http" and is_loopback):
43834384
console.print(

0 commit comments

Comments
 (0)