Skip to content

Commit

Permalink
warning about importing deleted bitstream (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paurikova2 authored Oct 8, 2024
1 parent d16f78f commit c77dd51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pump/_bitstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ def _bitstream_import_to(self, env, dspace, metadatas, bitstreamformatregistry,
resp = dspace.put_bitstream(params, data)
self._id2uuid[str(b_id)] = resp['id']
self._imported["bitstream"] += 1
if b['deleted']:
logging.warning(f'Imported bitstream is deleted! UUID: {resp["id"]}')
except Exception as e:
_logger.error(f'put_bitstream [{b_id}]: failed. Exception: [{str(e)}]')

Expand Down

0 comments on commit c77dd51

Please sign in to comment.