재시도 대기시간 변경

This commit is contained in:
2025-06-27 15:31:26 +09:00
parent 73d86b4a8f
commit 9e53ef917e

View File

@ -67,10 +67,12 @@ def get_precipitation_summary(retry=True):
except json.decoder.JSONDecodeError:
if retry:
print("⚠️ JSON 디코드 오류 발생, 재시도 중...")
print("JSON 디코드 오류 발생, 재시도 중...")
time.sleep(3) # 3초 대기
return get_precipitation_summary(retry=False)
else:
return "⚠️ 응답이 JSON 형식이 아닙니다."
print("응답이 JSON 형식이 아닙니다.")
return ''
# 테스트용
if __name__ == "__main__":