##// END OF EJS Templates
celery: don't disable celery if 1 task fails. This results in permanent...
celery: don't disable celery if 1 task fails. This results in permanent disable in case of any errors. We rather want to always check and fallback to sync.

File last commit:

r1:854a839a default
r2416:14bd0464 default
Show More
util.py
10 lines | 211 B | text/x-python | PythonLexer
"""
Safe quoting method
"""
def safe_quote(obj):
# this is the SQLA 0.9 approach
if hasattr(obj, 'name') and hasattr(obj.name, 'quote'):
return obj.name.quote
else:
return obj.quote