Skip to content

Commit

Permalink
Merge pull request #148 from gisce/fix-encoding
Browse files Browse the repository at this point in the history
Decode command
  • Loading branch information
polsala authored Mar 11, 2024
2 parents e1567ff + b60c9f3 commit 95dd55c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apply_pr/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,18 @@ def run(self):
self.catch_result(result)

def catch_result(self, result):
for line in result.split('\n'):
result_failed = result.failed
result_text = result.decode('utf-8')
for line in result_text.split('\n'):
if re.match('Applying: ', line):
tqdm.write(colors.green(line))
self.pbar.update()
if result.failed:
if result_failed:
if "git config --global user.email" in result:
logger.error(
"Need to configure git for this user\n"
)
raise GitHubException(result)
raise GitHubException(result_text)
try:
raise WiggleException
except WiggleException:
Expand Down

0 comments on commit 95dd55c

Please sign in to comment.