Marthee commited on
Commit
4e4a839
·
verified ·
1 Parent(s): d04abce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -36,8 +36,9 @@ def apifunction():
36
  data = request.get_json()
37
  print('here',data)
38
  # Extracting values
39
- allapi = data.get('allapi')
40
- print(allapi)
 
41
  return jsonify('received')
42
 
43
  except error:
 
36
  data = request.get_json()
37
  print('here',data)
38
  # Extracting values
39
+ if data:
40
+ allapi = data.get('allapi')
41
+ print(allapi)
42
  return jsonify('received')
43
 
44
  except error: