Reference exception correctly
This commit is contained in:
@@ -140,7 +140,7 @@ register_statistics(get_statistics)
|
||||
|
||||
try:
|
||||
app = App.register('documents', _(u'Documents'))
|
||||
except UnableToRegister:
|
||||
except App.UnableToRegister:
|
||||
pass
|
||||
else:
|
||||
app.set_dependencies(['app_registry'])
|
||||
|
||||
Reference in New Issue
Block a user