fixed bug referencing unset variable on exception
This commit is contained in:
@@ -38,5 +38,7 @@ def get(
|
|||||||
print_exc()
|
print_exc()
|
||||||
raise exc
|
raise exc
|
||||||
finally:
|
finally:
|
||||||
response.close()
|
# close connection if established
|
||||||
response.release_conn()
|
if 'response' in locals():
|
||||||
|
response.close()
|
||||||
|
response.release_conn()
|
||||||
|
|||||||
Reference in New Issue
Block a user