Browse Source

Fix string checks in schedule

`s` comes through as a `PosixPath`, so both the `' ' in s` & return value, later
used by `join`, complain.
mAAdhaTTah 5 years ago
parent
commit
be7a7f8548
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/main.py

+ 1 - 1
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),