Skip to content

Commit

Permalink
[master][noticket]: Fix - if db is not initialised and you are logged…
Browse files Browse the repository at this point in the history
… in then before this fix you get a 500 error, but now you get a nice 503 and message.
  • Loading branch information
David Read committed Mar 22, 2012
1 parent e2d59d8 commit 4181b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/home.py
Expand Up @@ -14,8 +14,8 @@ class HomeController(BaseController):
repo = model.repo

def __before__(self, action, **env):
BaseController.__before__(self, action, **env)
try:
BaseController.__before__(self, action, **env)
context = {'model':model,'user': c.user or c.author}
ckan.logic.check_access('site_read',context)
except ckan.logic.NotAuthorized:
Expand Down

0 comments on commit 4181b42

Please sign in to comment.