Skip to content

Commit 9751c18

Browse files
authored
Merge pull request #97 from minrk/fix-encoding
fix encoding when getting token from gh cli
2 parents 797226b + 2b9a099 commit 9751c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github_activity/github_activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def get_activity(
148148
else:
149149
# Attempt to use the gh cli if installed
150150
try:
151-
p = run(["gh", "auth", "token"], capture_output=True)
151+
p = run(["gh", "auth", "token"], text=True, capture_output=True)
152152
auth = p.stdout.strip()
153153
except CalledProcessError:
154154
print(

0 commit comments

Comments
 (0)