Revision 2167
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
240 | 240 |
def run_query(self, query, params=None, cacheable=False): |
241 | 241 |
'''Translates known DB errors to typed exceptions: |
242 | 242 |
See self.DbCursor.execute().''' |
243 |
assert query != None |
|
244 |
|
|
243 | 245 |
if not self.caching: cacheable = False |
244 | 246 |
used_cache = False |
245 | 247 |
try: |
Also available in: Unified diff
sql.py: DbConn.run_query(): Check that query != None