Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
More recent folder raise KeyError instead of DuplicationError.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulif committed Mar 17, 2010
1 parent 03f79fc commit d2b8d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grokui/admin/views.py
Expand Up @@ -75,7 +75,7 @@ def render(self, application, name):
grok.notify(grok.ObjectCreatedEvent(new_app))
self.context.root[name] = new_app
self.flash(u'Added %s `%s`.' % (application, name))
except DuplicationError:
except (DuplicationError, KeyError):
self.flash(u'Name `%s` already in use. '
u'Please choose another name.' % (name,))
self.redirect(self.url(self.context, 'applications'))
Expand Down

0 comments on commit d2b8d85

Please sign in to comment.