Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions shotgun_api3/shotgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,6 +1612,8 @@ def download_attachment(self, attachment=False, file_path=None,
raise ShotgunFileDownloadError(err)
else:
if file_path:
if not fp.closed:
fp.close()
return file_path
else:
return attachment
Expand Down