We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aa905e commit f57de6dCopy full SHA for f57de6d
1 file changed
datashuttle/utils/rclone.py
@@ -198,10 +198,12 @@ def check_rclone_with_default_call() -> bool:
198
def prompt_rclone_download_if_does_not_exist() -> None:
199
"""Check that rclone is installed."""
200
if not check_rclone_with_default_call():
201
+ newline = "" if "PYTEST_CURRENT_TEST" in os.environ else "\n"
202
+
203
raise BaseException(
- "RClone installation not found. Install by entering "
- "the following into your terminal:\n"
204
- " conda install -c conda-forge rclone"
+ f"RClone installation not found. Install by entering "
205
+ f"the following into your terminal:{newline}"
206
+ f" conda install -c conda-forge rclone"
207
)
208
209
0 commit comments