Skip to content

Commit

Permalink
[AIFlow] Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sxnan committed Oct 15, 2021
1 parent d3581ab commit f6ed3d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ai_flow_plugins/blob_manager_plugins/oss_blob_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ def download_project(self, workflow_snapshot_id, remote_path: Text, local_path:
logger.debug('Unlocked file {}'.format(lock_file_path))
lock_file.close()
if os.path.exists(lock_file_path):
os.remove(lock_file_path)
try:
os.remove(lock_file_path)
except OSError as e:
logger.warning("Failed to remove lock file: {}".format(lock_file_path), exc_info=e)
else:
logger.info("Oss file: {} already exist at {}".format(oss_object_key, local_zip_file_path))

Expand Down

0 comments on commit f6ed3d8

Please sign in to comment.