bilalhasanniazi commited on
Commit
8f6145e
·
verified ·
1 Parent(s): a400691

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -299,7 +299,7 @@ def get_notifications():
299
  try:
300
  notifications = get_all_notifications(user_id)
301
  return jsonify({"notifications": notifications}), 200
302
- exceptATypeError as e:
303
  return jsonify({"error": str(e)}), 500
304
 
305
  @app.route('/notifications/mark_read', methods=['POST'])
 
299
  try:
300
  notifications = get_all_notifications(user_id)
301
  return jsonify({"notifications": notifications}), 200
302
+ except TypeError as e:
303
  return jsonify({"error": str(e)}), 500
304
 
305
  @app.route('/notifications/mark_read', methods=['POST'])