Skip to content

Commit

Permalink
fix encoding when getting token from gh cli
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Jun 12, 2024
1 parent 797226b commit 2b9a099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_activity/github_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_activity(
else:
# Attempt to use the gh cli if installed
try:
p = run(["gh", "auth", "token"], capture_output=True)
p = run(["gh", "auth", "token"], text=True, capture_output=True)
auth = p.stdout.strip()
except CalledProcessError:
print(
Expand Down

0 comments on commit 2b9a099

Please sign in to comment.