Karthikeyen92 commited on
Commit
86f9d48
·
verified ·
1 Parent(s): a04e896

Update py/db_storage.py

Browse files
Files changed (1) hide show
  1. py/db_storage.py +1 -1
py/db_storage.py CHANGED
@@ -159,7 +159,7 @@ class DBStorage:
159
  def check_and_delete(PATH):
160
  if os.path.isdir(PATH):
161
  # shutil.rmtree(PATH, onexc=lambda func, path, exc: os.chmod(path, 0o777))
162
- shutil.rmtree(PATH, path, exc: os.chmod(path, 0o777))
163
  print(f'Deleted {PATH}')
164
 
165
  def clear_db():
 
159
  def check_and_delete(PATH):
160
  if os.path.isdir(PATH):
161
  # shutil.rmtree(PATH, onexc=lambda func, path, exc: os.chmod(path, 0o777))
162
+ shutil.rmtree(PATH)
163
  print(f'Deleted {PATH}')
164
 
165
  def clear_db():