Explorar o código

better error message when nothing left to resume

Nick Sweeting %!s(int64=5) %!d(string=hai) anos
pai
achega
a3155b88a1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      archivebox/main.py

+ 2 - 1
archivebox/main.py

@@ -712,7 +712,8 @@ def update(resume: Optional[float]=None,
             if link.timestamp >= str(resume)
             if link.timestamp >= str(resume)
         ]
         ]
         if not to_archive:
         if not to_archive:
-            print(f'[√] Nothing found to resume after {resume}.')
+            stderr('')
+            stderr(f'[√] Nothing found to resume after {resume}', color='green')
             return all_links
             return all_links
 
 
     archive_links(to_archive, overwrite=overwrite, out_dir=out_dir)
     archive_links(to_archive, overwrite=overwrite, out_dir=out_dir)