NameError: global name 'PermissionError' is not defined | Python 2.2.2 /usr/bin/python2.2 |
A problem occurred while running a Python script. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call first. The exception attributes are:
__doc__ = 'Name not found globally.'
__getitem__ = <bound method NameError.__getitem__ of <exceptions.NameError instance>>
__init__ = <bound method NameError.__init__ of <exceptions.NameError instance>>
__module__ = 'exceptions'
__str__ = <bound method NameError.__str__ of <exceptions.NameError instance>>
args = ("global name 'PermissionError' is not defined",)
/usr/lib/python2.2/site-packages/roundup/cgi/client.py in _changenode(self=<_roundup_tracker_2.interfaces.Client instance>, cn='issue', nodeid='3', props={'priority': '3'}) |
1159 raise PermissionError, 'You do not have permission to edit %s'%cn |
/usr/lib/python2.2/site-packages/roundup/cgi/client.py in _editnodes(self=<_roundup_tracker_2.interfaces.Client instance>, all_props={('issue', '3'): {'priority': '3'}}, all_links=[('issue', '3', 'messages', [('msg', '-1')]), ('issue', '3', 'files', [('file', '-1')]), ('msg', '-1', 'files', [('file', '-1')])], newids=None) |
1110 props = self._changenode(cn, nodeid, props) |
/usr/lib/python2.2/site-packages/roundup/cgi/client.py in editItemAction(self=<_roundup_tracker_2.interfaces.Client instance>) |
966 message = self._editnodes(props, links) |
/usr/lib/python2.2/site-packages/roundup/cgi/client.py in handle_action(self=<_roundup_tracker_2.interfaces.Client instance>) |
526 getattr(self, method)() |
/usr/lib/python2.2/site-packages/roundup/cgi/client.py in inner_main(self=<_roundup_tracker_2.interfaces.Client instance>) |
262 self.write(cgitb.html()) |