Commit 7ed69d8a authored by 's avatar

- don't raise string exceptions

parent d6376fb6
......@@ -288,10 +288,10 @@ class BasicUserFolder(Navigation, Tabs, Item, RoleManager,
def _setId(self, id):
if id != self.id:
raise MessageDialog(
raise ValueError(MessageDialog(
title='Invalid Id',
message='Cannot change the id of a UserFolder',
action='./manage_main')
action='./manage_main'))
class UserFolder(accesscontrol_userfolder.UserFolder, BasicUserFolder):
......
......@@ -103,10 +103,10 @@ class SiteErrorLog (SimpleItem):
def _setId(self, id):
if id != self.id:
raise MessageDialog(
raise ValueError(MessageDialog(
title='Invalid Id',
message='Cannot change the id of a SiteErrorLog',
action ='./manage_main',)
action='./manage_main'))
def _getLog(self):
"""Returns the log for this object.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment