m8chaa commited on
Commit
47529db
·
verified ·
1 Parent(s): 0477f5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -292,8 +292,7 @@ async def mobile_process_receipts(background_tasks: BackgroundTasks, sheeturl: s
292
  "mode": "alert-user",
293
  "mimeType": image.content_type,
294
  }
295
- logging.info('Sending to Apps Script the ' + str(body))
296
- async with httpx.AsyncClient(follow_redirects=True) as client:
297
  response = await client.post(appsScriptsURL, json=body)
298
  if response.status_code != 200:
299
  logging.error(f"Unexpected response from Google Apps Script API: {response.status_code} - {response.text}")
 
292
  "mode": "alert-user",
293
  "mimeType": image.content_type,
294
  }
295
+ async with httpx.AsyncClient(follow_redirects=True, timeout=timeout) as client:
 
296
  response = await client.post(appsScriptsURL, json=body)
297
  if response.status_code != 200:
298
  logging.error(f"Unexpected response from Google Apps Script API: {response.status_code} - {response.text}")