autoformat

This commit is contained in:
2026-07-16 11:21:45 +02:00
parent 6f5c04ba11
commit f3e31ddcaa
5 changed files with 16 additions and 17 deletions

View File

@@ -21,7 +21,7 @@ class Cleanup():
def deleteAllFilesInFolder(self,folder_path):
try:
self.cli.executeCommand('rm -r ' + folder_path + '*')
except Exception as error:
except Exception:
pass
def cleanupFiles(self,file_type):
@@ -31,7 +31,7 @@ class Cleanup():
def cleanupForUser(self,user):
try:
self.cli.executeCommand('find "' + self.paths.getDataFolderPath(Paths.TYPE_ENCRYPTED) + '" -not -name "*' + str(user) +'*" -type f -print | xargs rm -v')
except Exception as error:
except Exception:
pass
self.cleanupFiles(Paths.TYPE_DECRYPTED)