ソースを参照

Merge pull request #547 from mAAdhaTTah/bugfix-string-posixpath

Fix string checks in schedule
Nick Sweeting 5 年 前
コミット
1c79d1e99e
1 ファイル変更1 行追加1 行削除
  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),