Skip to content

Commit

Permalink
fixup: GitHub checks
Browse files Browse the repository at this point in the history
  • Loading branch information
16Martin committed Nov 30, 2024
1 parent b6649c2 commit 9928df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capycli/bom/findsources.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def github_request(url: str, username: str = "", token: str = "",
Style.RESET_ALL)
response = requests.Response()
response._content = \
'{' + f'"exception": "{repr(ex)}"' + '}'.encode()
b'{' + f'"exception": "{repr(ex)}"'.encode() + b'}'
return response if return_response else response.json()

@staticmethod
Expand Down Expand Up @@ -290,7 +290,7 @@ def get_matching_source_url(self, version: Any, github_ref: str,
except (TypeError, KeyError, AttributeError) as err:
# res.json() did not give us an iterable of things where
# 'name' is a viable index, for instance an error message
tags = ()
tags = []

new_prefixes = self.tag_cache.filter_and_cache(
repo['full_name'], version, # cache key
Expand Down

0 comments on commit 9928df2

Please sign in to comment.