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