Skip to content

Commit

Permalink
Close file before deleting it. (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhellander authored May 22, 2024
1 parent 36b8241 commit cd5eed9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fedn/network/clients/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def unpack(self):
logger.info("Successfully extracted compute package content in {}".format(self.pkg_path))
# delete the tarball
logger.info("Deleting temporary package tarball file.")
f.close()
os.remove(os.path.join(self.pkg_path, self.pkg_name))
# search for file fedn.yaml in extracted package
for root, dirs, files in os.walk(self.pkg_path):
Expand Down

0 comments on commit cd5eed9

Please sign in to comment.