Skip to content

Commit

Permalink
add exception handling to clear_all
Browse files Browse the repository at this point in the history
  • Loading branch information
AHReccese committed Jul 23, 2024
1 parent a97f258 commit 5b56718
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions dmeta/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ def clear_all():
"""
path = os.getcwd()
dir_list = os.listdir(path)
microsoft_files = []
for item in dir_list:
if get_microsoft_format(item) is not None:
microsoft_files.append(item)
for microsoft_file in microsoft_files:
clear(microsoft_file)

for file in dir_list:
try:
clear(file)
except DMetaBaseError as e:
pass

def update(config_file_name, microsoft_file_name):
"""
Expand Down

0 comments on commit 5b56718

Please sign in to comment.