diff --git a/bananaSPLIT/main.py b/bananaSPLIT/main.py index e9ab367..2ba55ce 100644 --- a/bananaSPLIT/main.py +++ b/bananaSPLIT/main.py @@ -15,8 +15,6 @@ from pprint import pprint from glob import glob from copy import deepcopy from slugify import slugify - - ####### VAR GLOBALI ####### ####### FUNZIONI GLOBALI ####### @@ -111,14 +109,18 @@ try: else: print('Non ho capito la risposta, sii un po\' piu\' specifico... [y/n]\n') pass +except: + print(Fore.LIGHTRED_EX, 'OOPS! Qualcosa e\' andato storto, non riesco a trovare nessun file da leggere :(', Style.RESET_ALL) + input() + sys.exit() + +try: if settings['removeOldFiles']: print("Rimuovo i vecchi file dalla cartella di destinazione..") for x in glob(cfg['OUTworkPath']+'*.txt'): os.remove(x) except: - print(Fore.LIGHTRED_EX, 'OOPS! Qualcosa e\' andato storto, non riesco a trovare nessun file da leggere :(', Style.RESET_ALL) - input() - sys.exit() + print(Fore.LIGHTRED_EX, 'OOPS! Qualcosa e\' andato storto, non riesco a rimuovere i vecchi file :(', Style.RESET_ALL) lastTime=time.time() fileCounter = 1