Skip to content

Commit

Permalink
add return
Browse files Browse the repository at this point in the history
  • Loading branch information
anandhu-eng committed Feb 27, 2025
1 parent 5dacd5b commit 818c432
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlc/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def rm(self, i):
# Do not error out if fetch_all is used
if inp["fetch_all"] == True:
logger.warning(f"{target_name} is empty! nothing to be cleared!")
return {"return": 0}
else:
return {'return': 16, 'error': f'No {target_name} found for {inp}'}
elif len(res['list']) > 1:
Expand Down

0 comments on commit 818c432

Please sign in to comment.