• Vincent Pelletier's avatar
    CMFActivity.Activity.SQLBase: Catch DatabaseError. · 8c80c05b
    Vincent Pelletier authored
    Fixes browsing ERP5 documents without activity tables available.
    Of course, as most modifications trigger activity creation, no
    modifications are possible. But this improves read-only access in
    degraded conditions.
    Also, by design a successful query must return one line, so do not test
    returned value before processing it.
    8c80c05b
SQLBase.py 29.7 KB