Skip to content

Commit

Permalink
handle not started space
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryu1845 committed Mar 12, 2022
2 parents 59cc0be + 130905a commit 71bd3e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
run: |
black .
isort **/**.py
git config --global user.name 'Ryu1845'
git config --global user.email '[email protected]'
git diff --quiet && git diff --staged --quiet || git commit -am 'Formatted using isort and black'
git config --global user.name 'Auto format'
git config --global user.email '[email protected]'
git diff --quiet && git diff --staged --quiet || git commit -am 'Formatted using isort and black' && git push
2 changes: 1 addition & 1 deletion twspace_dl/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def guest_token() -> str:
response = requests.post(
"https://api.twitter.com/1.1/guest/activate.json", headers=headers
).json()
token = response['guest_token']
token = response["guest_token"]
if not token:
raise RuntimeError("No guest token found after five retry")
return token
Expand Down

0 comments on commit 71bd3e8

Please sign in to comment.