Skip to content

Commit 6a89b61

Browse files
author
Richard Jones
committed
handle Reject in the web interface too
1 parent 44de4fd commit 6a89b61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roundup/cgi/actions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#$Id: actions.py,v 1.15 2004-03-26 00:44:11 richard Exp $
1+
#$Id: actions.py,v 1.16 2004-03-26 00:46:33 richard Exp $
22

33
import re, cgi, StringIO, urllib, Cookie, time, random
44

5-
from roundup import hyperdb, token, date, password, rcsv
5+
from roundup import hyperdb, token, date, password, rcsv, exceptions
66
from roundup.i18n import _
77
from roundup.cgi import templating
88
from roundup.cgi.exceptions import Redirect, Unauthorised, SeriousError
@@ -471,7 +471,7 @@ def handle(self):
471471
# handle the props
472472
try:
473473
message = self._editnodes(props, links)
474-
except (ValueError, KeyError, IndexError), message:
474+
except (ValueError, KeyError, IndexError, exceptions.Reject), message:
475475
self.client.error_message.append(_('Apply Error: ') + str(message))
476476
return
477477

@@ -511,7 +511,7 @@ def handle(self):
511511
# when it hits the None element, it'll set self.nodeid
512512
messages = self._editnodes(props, links)
513513

514-
except (ValueError, KeyError, IndexError), message:
514+
except (ValueError, KeyError, IndexError, exceptions.Reject), message:
515515
# these errors might just be indicative of user dumbness
516516
self.client.error_message.append(_('Error: ') + str(message))
517517
return

0 commit comments

Comments
 (0)