##// END OF EJS Templates
error-handling: Remove if condition to check if the response is a vcs response....
error-handling: Remove if condition to check if the response is a vcs response. We moved the VCS middleware out of the error handling. Therefore we don't need to skip the error handling anymore.

File last commit:

r1:854a839a default
r949:706ee3c3 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