From be7a7f8548d76babb5ed0b4f8bae0109d94d3f76 Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Mon, 23 Nov 2020 18:34:07 -0500 Subject: [PATCH] Fix string checks in schedule `s` comes through as a `PosixPath`, so both the `' ' in s` & return value, later used by `join`, complain. --- archivebox/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/main.py b/archivebox/main.py index 26f05427..3d577a42 100644 --- a/archivebox/main.py +++ b/archivebox/main.py @@ -938,7 +938,7 @@ def schedule(add: bool=False, if every or add: every = every or 'day' - quoted = lambda s: f'"{s}"' if s and ' ' in s else s + quoted = lambda s: f'"{s}"' if s and ' ' in str(s) else str(s) cmd = [ 'cd', quoted(out_dir),