fixed bug referencing unset variable on exception

This commit is contained in:
brian
2024-12-20 23:15:55 +00:00
parent aa6a097e4f
commit db4ce6b425
+2
View File
@@ -38,5 +38,7 @@ def get(
print_exc() print_exc()
raise exc raise exc
finally: finally:
# close connection if established
if 'response' in locals():
response.close() response.close()
response.release_conn() response.release_conn()