diff --git a/mlc/action.py b/mlc/action.py index 79bbeaeed..34beccf7b 100644 --- a/mlc/action.py +++ b/mlc/action.py @@ -338,7 +338,7 @@ def rm(self, i): if len(res['list']) == 0: # Do not error out if fetch_all is used - if inp["fetch_all"] == True: + if inp.get("fetch_all", False) == True: logger.warning(f"{target_name} is empty! nothing to be cleared!") return {"return": 0} else: