Skip to content

Commit

Permalink
check encodings on different OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
AHReccese committed Jul 22, 2024
1 parent 862aa8a commit 847309c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reserver/reserver_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def upload(self, package_name, user_parameters=None):
except CalledProcessError as e:
publish_failed = True
error = e.output
print(chardet.detect(error)['encoding'])
print(error.decode('utf-8'))
error = error.decode(chardet.detect(error)['encoding'])
if command == commands[-2]:
if "403" in error and "Invalid or non-existent authentication information" in error:
Expand Down

0 comments on commit 847309c

Please sign in to comment.