Skip to content

Commit

Permalink
add body is none option to run_cron_job
Browse files Browse the repository at this point in the history
  • Loading branch information
bitkarrot committed Jan 19, 2024
1 parent 05085b5 commit c5db6e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run_cron_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ async def call_api(method_name, url, headers, body):

try:
body_json = {}
if len(body) > 0:
if body is None:
body_json = {}
elif len(body) > 0:
body_json = await process_json_body(body)

if method_name.lower() in http_verbs:
Expand Down

0 comments on commit c5db6e4

Please sign in to comment.