alanchen1115 commited on
Commit
e85279a
·
verified ·
1 Parent(s): 0385c62

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -37,7 +37,7 @@ async def webhook(request: Request):
37
  signature = request.headers['X-Line-Signature']
38
  body = await request.body()
39
  try:
40
- handler.handle(body.decode(),signature)
41
  except InvalidSignatureError:
42
  raise HTTPException(status_code=400, detail="SignatureError")
43
 
 
37
  signature = request.headers['X-Line-Signature']
38
  body = await request.body()
39
  try:
40
+ line_handler.handle(body.decode(),signature)
41
  except InvalidSignatureError:
42
  raise HTTPException(status_code=400, detail="SignatureError")
43