2
0
Эх сурвалжийг харах

fix: Change check to avoid issues with empty querysets

Cristian 5 жил өмнө
parent
commit
5348f4735a

+ 1 - 1
archivebox/main.py

@@ -582,7 +582,7 @@ def remove(filter_str: Optional[str]=None,
     
     
     check_data_folder(out_dir=out_dir)
     check_data_folder(out_dir=out_dir)
 
 
-    if not snapshots:
+    if snapshots is None:
         if filter_str and filter_patterns:
         if filter_str and filter_patterns:
             stderr(
             stderr(
                 '[X] You should pass either a pattern as an argument, '
                 '[X] You should pass either a pattern as an argument, '