We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1526834 commit 9516f48Copy full SHA for 9516f48
src/nutrient_dws/http_client.py
@@ -170,11 +170,11 @@ def post(
170
# Clean up file handles after request
171
if files:
172
for _, file_data in files.items():
173
- if hasattr(file_data, 'close'):
+ if hasattr(file_data, "close"):
174
file_data.close()
175
elif isinstance(file_data, tuple) and len(file_data) > 1:
176
file_obj = file_data[1]
177
- if hasattr(file_obj, 'close'):
+ if hasattr(file_obj, "close"):
178
file_obj.close()
179
180
return self._handle_response(response)
0 commit comments