Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
0e33c704
Commit
0e33c704
authored
Jan 16, 2013
by
Stephane Glondu
Browse files
Raise 404 in get_election_by_uuid if Not_found
parent
78bc1a42
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/helios_registration.ml
View file @
0e33c704
...
...
@@ -79,7 +79,10 @@ let () =
|
None
->
()
let
get_election_by_uuid
x
=
Ocsipersist
.
find
elections_table
(
Uuidm
.
to_string
x
)
try_lwt
Ocsipersist
.
find
elections_table
(
Uuidm
.
to_string
x
)
with
Not_found
->
raise_lwt
Eliom_common
.
Eliom_404
let
get_featured_elections
()
=
(* FIXME: doesn't scale when there are a lot of unfeatured elections *)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment