Skip to content

Commit

Permalink
fixed: makedir if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousm4x committed Feb 8, 2022
1 parent e185f9b commit 357e250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wubbl0rz_archiv/clips/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def clips(self):
self.broadcaster_id, cursor_week)

def game(self, obj):
if not os.path.isdir(self.gamedir):
os.mkdir(self.gamedir)
game_req = requests.get(
f"https://api.twitch.tv/helix/games?id={obj.game_id}", headers=self.helix_header)
try:
Expand Down

0 comments on commit 357e250

Please sign in to comment.