Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions recaptcha_enterprise/demosite/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def on_signup() -> Response:
}
}
)
except ValueError or Exception as e:
return jsonify({"data": {"error_msg": str(e.__dict__)}})
except Exception as e:
return jsonify({"data": {"error_msg": str(e)}})


# Return login template.
Expand Down Expand Up @@ -150,8 +150,8 @@ def on_login() -> Response:
}
}
)
except ValueError or Exception as e:
return jsonify({"data": {"error_msg": str(e.__dict__)}})
except Exception as e:
return jsonify({"data": {"error_msg": str(e)}})


# Return store template.
Expand Down Expand Up @@ -198,8 +198,8 @@ def on_store_checkout() -> Response:
}
}
)
except ValueError or Exception as e:
return jsonify({"data": {"error_msg": str(e.__dict__)}})
except Exception as e:
return jsonify({"data": {"error_msg": str(e)}})


# Return comment template.
Expand Down Expand Up @@ -246,8 +246,8 @@ def on_comment_submit() -> Response:
}
}
)
except ValueError or Exception as e:
return jsonify({"data": {"error_msg": str(e.__dict__)}})
except Exception as e:
return jsonify({"data": {"error_msg": str(e)}})


# Classify the action as BAD/ NOT_BAD based on conditions specified.
Expand Down
Loading