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
+4 -2
View File
@@ -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()