Adding a security to check if the folder call exist

This commit is contained in:
Aurelien Vaillant
2022-01-24 16:45:26 +01:00
parent 6eaf4e2c53
commit 5b16883077
3 changed files with 99 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
class Archive(Exception):
def __init__(self, source):
self.source = source
class ArchiveFolderSourceNotFound(Archive):
def __str__(self):
return f'Can\'t find the folder source "{self.source}".'