Skip to content

Commit db11da5

Browse files
committed
remove logging git error from wrong place
1 parent 30c3745 commit db11da5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

nf_core/synced_repo.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,7 @@ def checkout(self, commit):
260260
log.debug(f"Overwriting local changes in '{self.local_repo_dir}'")
261261
self.repo.git.checkout(self.branch, force=True)
262262
else:
263-
log.error(
264-
f"Git error: {e}\n"
265-
"To solve this, you can try to remove the cloned rempository and run the command again.\n"
266-
f"This repository is typically found at `{self.local_repo_dir}`"
267-
)
268-
raise UserWarning
263+
raise e
269264

270265
def component_exists(self, component_name, component_type, checkout=True, commit=None):
271266
"""

0 commit comments

Comments
 (0)