File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,15 @@ def check_tls_certificates(cert, key):
2020
2121def check_key_folders ():
2222 # Placeholder for initialisation checking.
23- if not os .path .isdir (Settings .file_download_folder ):
24- print ("The folder is missing." )
25- os .mkdir (f"{ Settings .file_download_folder } " )
26-
27- if not os .path .isdir (Settings .implant_resource_folder ):
28- print ("Missing the resource folder." )
29- os .mkdir (f"{ Settings .implant_resource_folder } " )
30- return
23+ try :
24+ if not os .path .isdir (Settings .file_download_folder ):
25+ os .mkdir (f"{ Settings .file_download_folder } " )
26+
27+ if not os .path .isdir (Settings .implant_resource_folder ):
28+ os .mkdir (f"{ Settings .implant_resource_folder } " )
29+ return True
30+ except :
31+ return False
3132
3233
3334def start_controller ():
You can’t perform that action at this time.
0 commit comments