|
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 $ |
2 | 2 |
|
3 | 3 | import re, cgi, StringIO, urllib, Cookie, time, random |
4 | 4 |
|
5 | | -from roundup import hyperdb, token, date, password, rcsv, exceptions |
| 5 | +from roundup import hyperdb, token, date, password, rcsv |
6 | 6 | from roundup.i18n import _ |
| 7 | +import roundup.exceptions |
7 | 8 | from roundup.cgi import exceptions, templating |
8 | 9 | from roundup.mailgw import uidFromAddress |
9 | 10 |
|
@@ -522,7 +523,8 @@ def handle(self): |
522 | 523 | # handle the props |
523 | 524 | try: |
524 | 525 | message = self._editnodes(props, links) |
525 | | - except (ValueError, KeyError, IndexError, exceptions.Reject), message: |
| 526 | + except (ValueError, KeyError, IndexError, |
| 527 | + roundup.exceptions.Reject), message: |
526 | 528 | import traceback;traceback.print_exc() |
527 | 529 | self.client.error_message.append( |
528 | 530 | self._('Edit Error: %s') % str(message)) |
@@ -564,7 +566,8 @@ def handle(self): |
564 | 566 | try: |
565 | 567 | # when it hits the None element, it'll set self.nodeid |
566 | 568 | messages = self._editnodes(props, links) |
567 | | - except (ValueError, KeyError, IndexError, exceptions.Reject), message: |
| 569 | + except (ValueError, KeyError, IndexError, |
| 570 | + roundup.exceptions.Reject), message: |
568 | 571 | # these errors might just be indicative of user dumbness |
569 | 572 | self.client.error_message.append(_('Error: %s') % str(message)) |
570 | 573 | return |
@@ -753,8 +756,8 @@ def handle(self): |
753 | 756 | try: |
754 | 757 | # when it hits the None element, it'll set self.nodeid |
755 | 758 | messages = self._editnodes(props, links) |
756 | | - except (ValueError, KeyError, IndexError, exceptions.Reject), \ |
757 | | - message: |
| 759 | + except (ValueError, KeyError, IndexError, |
| 760 | + roundup.exceptions.Reject), message: |
758 | 761 | # these errors might just be indicative of user dumbness |
759 | 762 | self.client.error_message.append(_('Error: %s') % str(message)) |
760 | 763 | return |
|
0 commit comments