Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
mering committed Oct 31, 2023
1 parent 6abd1b1 commit 688630b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency: testing
Expand Down
4 changes: 3 additions & 1 deletion clean_ghcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def get_list_packages(owner, repo_name, owner_type, package_name):
f"/{owner_type}s/{owner}/packages/container/{package_name}")
response = requests.get(url, headers=get_base_headers())
if not response.ok:
if response.status_code != 404:
if response.status_code == 404:
return []
else:
raise Exception(response.text)
return [response.json()]

Expand Down

0 comments on commit 688630b

Please sign in to comment.