Skip to content

Commit 510832d

Browse files
author
Richard Jones
committed
namespace collisions
1 parent 8204cd0 commit 510832d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

roundup/cgi/actions.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
#$Id: actions.py,v 1.39 2004-11-18 17:20:40 a1s Exp $
1+
#$Id: actions.py,v 1.40 2004-11-23 22:45:13 richard Exp $
22

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

5-
from roundup import hyperdb, token, date, password, rcsv, exceptions
5+
from roundup import hyperdb, token, date, password, rcsv
66
from roundup.i18n import _
7+
import roundup.exceptions
78
from roundup.cgi import exceptions, templating
89
from roundup.mailgw import uidFromAddress
910

@@ -522,7 +523,8 @@ def handle(self):
522523
# handle the props
523524
try:
524525
message = self._editnodes(props, links)
525-
except (ValueError, KeyError, IndexError, exceptions.Reject), message:
526+
except (ValueError, KeyError, IndexError,
527+
roundup.exceptions.Reject), message:
526528
import traceback;traceback.print_exc()
527529
self.client.error_message.append(
528530
self._('Edit Error: %s') % str(message))
@@ -564,7 +566,8 @@ def handle(self):
564566
try:
565567
# when it hits the None element, it'll set self.nodeid
566568
messages = self._editnodes(props, links)
567-
except (ValueError, KeyError, IndexError, exceptions.Reject), message:
569+
except (ValueError, KeyError, IndexError,
570+
roundup.exceptions.Reject), message:
568571
# these errors might just be indicative of user dumbness
569572
self.client.error_message.append(_('Error: %s') % str(message))
570573
return
@@ -753,8 +756,8 @@ def handle(self):
753756
try:
754757
# when it hits the None element, it'll set self.nodeid
755758
messages = self._editnodes(props, links)
756-
except (ValueError, KeyError, IndexError, exceptions.Reject), \
757-
message:
759+
except (ValueError, KeyError, IndexError,
760+
roundup.exceptions.Reject), message:
758761
# these errors might just be indicative of user dumbness
759762
self.client.error_message.append(_('Error: %s') % str(message))
760763
return

0 commit comments

Comments
 (0)