Skip to content

Commit

Permalink
Return close() result in FileLikeProxy class
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarragan-bridge committed Sep 24, 2024
1 parent f435238 commit 61df843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart_open/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def __next__(self):

def close(self):
try:
self.__wrapped__.close()
return self.__wrapped__.close()
finally:
if self.__inner != self.__wrapped__: # Don't close again if inner and wrapped are the same
self.__inner.close()

0 comments on commit 61df843

Please sign in to comment.