Skip to content

Commit

Permalink
[hotfix] null check
Browse files Browse the repository at this point in the history
  • Loading branch information
poriz committed Feb 24, 2024
1 parent 5a8741f commit 35247e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dags/streaming/stream_data_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def chzzk_raw(current_time, **kwargs):

if res.status_code == 200:
live_data = res.json()
if live_data["content"]["liveId"]:
if not live_data["content"]["liveId"]:
time.sleep(5)
live_data = requests.get(f"https://api.chzzk.naver.com/service/v2/channels/{id}/live-detail").json()
try:
Expand Down

0 comments on commit 35247e7

Please sign in to comment.