Skip to content

Commit

Permalink
updated code 2
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofanindya committed Jul 26, 2023
1 parent 8b7f56d commit a1bd381
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions nxdrive/engine/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,19 +571,16 @@ def _synchronize_direct_transfer(self, doc_pair: DocPair, /) -> None:

if not path.exists():
self.engine.directTranferError.emit(path)
try:
if not session:
session = self.dao.get_session(doc_pair.session)
if session:
log.warning(
f"Pausing Direct Transfer of {path!r} because it does not exist. \
Please validate the path and resume."
)
self.dao.pause_session(session.uid)
except Exception as e:
else:
log.warning(

Check warning on line 581 in nxdrive/engine/processor.py

View check run for this annotation

Codecov / codecov/patch

nxdrive/engine/processor.py#L581

Added line #L581 was not covered by tests
f"Cancelling Direct Transfer of {path!r} because it does not exist."
)
log.warning(f"Error: {e!r}")
self._direct_transfer_cancel(doc_pair)

Check warning on line 584 in nxdrive/engine/processor.py

View check run for this annotation

Codecov / codecov/patch

nxdrive/engine/processor.py#L584

Added line #L584 was not covered by tests
return

Expand Down

0 comments on commit a1bd381

Please sign in to comment.