Skip to content

Commit

Permalink
Merge pull request #188 from perlpunk/fix-decode-content
Browse files Browse the repository at this point in the history
Fix order of arguments to _decode_content
  • Loading branch information
perlpunk authored Oct 26, 2021
2 parents 5955994 + 8ef1a48 commit 5fe3600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openqa_review/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _get(self, url, as_json=False): # pragma: no cover
msg = "Request to {} failed: {}".format(url, str(e))
log.warn(msg)
raise DownloadError(msg)
return self._decode_content(r.content.decode("utf-8"), url, as_json)
return self._decode_content(url, r.content.decode("utf-8"), as_json)

def _decode_content(self, url, raw, as_json=False):
try:
Expand Down

0 comments on commit 5fe3600

Please sign in to comment.