Skip to content

Commit 4cc0d29

Browse files
Update .github/release/check_maven_central.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 4c4ba21 commit 4cc0d29

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/release/check_maven_central.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ def check_maven_central(group_id, artifact_id, version):
2929
with urllib.request.urlopen(req, timeout=10) as response:
3030
if response.getcode() == 200:
3131
return True, group_id, artifact_id, version, url
32-
except urllib.error.HTTPError:
32+
except urllib.error.HTTPError as e:
33+
if e.code != 404:
34+
print(f"HTTP error {e.code} checking {url}")
3335
return False, group_id, artifact_id, version, url
34-
except Exception:
36+
except Exception as e:
37+
print(f"Error checking {url}: {e}")
3538
return False, group_id, artifact_id, version, url
36-
return False, group_id, artifact_id, version, url
3739

3840
def main():
3941
print("Finding pom.xml files...")

0 commit comments

Comments
 (0)