[SQLObject] Exceptions are unpredictable?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Leif K-B. <eu...@ec...> - 2004-11-19 11:42:22
|
I'm writing an application with SQLObject that uses EAFP (Easier to Ask for Forgiveness than Permission) style, as does most Python code. Unfortunately, the exceptions SQLObject raises seem to change depending on the database being used, which makes doing this in a cross-database way impossible. Would I be better off using LBYL (Look Before You Leap) style with code that uses SQLObject? |