Hi,

I want to make the connection to the database within a try block

try:
    db = DAL('sqlite://storage.sqlite') 
except:
    redirect(URL(c='default', f='maintenance'))

but, obviously, this comes into a cycle of error trapping error.

how I can secure the connection to the database and returns an internal 
error?

Jose

-- 



Reply via email to