porca mucca! era solo una lettera accentata nel commento di python che
mandava in crisi l'interprete!!!!
This commit is contained in:
@@ -105,5 +105,5 @@
|
||||
"&"
|
||||
]
|
||||
},
|
||||
"name": "_ Women, Drugs And Depression.txt"
|
||||
"name": "FILE1.txt"
|
||||
}
|
||||
@@ -3,11 +3,11 @@ Created on 2 nov 2019
|
||||
|
||||
@author: Emanuele Trabattoni
|
||||
'''
|
||||
from PyQt5.QtCore import QRunnable, QObject, pyqtSignal
|
||||
#from PyQt5.QtCore import QRunnable, QObject, pyqtSignal
|
||||
|
||||
from slugify import slugify
|
||||
import time, parse, re, copy, os,json
|
||||
import traceback
|
||||
#import traceback
|
||||
|
||||
class bananaSPLITTER():
|
||||
|
||||
@@ -79,7 +79,7 @@ class bananaSPLITTER():
|
||||
except FileExistsError as fe:
|
||||
self.log.critical(fe)
|
||||
except Exception as ee:
|
||||
traceback.print_exc()
|
||||
#traceback.print_exc()
|
||||
self.log.warn(ee)
|
||||
pass
|
||||
|
||||
@@ -172,7 +172,7 @@ class bananaSPLITTER():
|
||||
pass
|
||||
elif self.status == 'head':
|
||||
tempContent = list()
|
||||
#doppio check per trovare línizio del corpo documento
|
||||
#doppio check per trovare l'inizio del corpo documento
|
||||
if re.match(self.docStruct['beginOfDocument'],l):
|
||||
self.status='body'
|
||||
if lineWords[0] not in self.docStruct['language']['headWords']: #se la prima parola non e' tra quelle di inizio
|
||||
@@ -370,7 +370,7 @@ class bananaSPLITTER():
|
||||
except KeyError as ke:
|
||||
self.log.error(f"Chiave {ke} non trovata per:{outFileCounter} {ff['title']} ")
|
||||
except Exception as ee:
|
||||
traceback.print_exc()
|
||||
#traceback.print_exc()
|
||||
self.log.error(f"Errore generale nel salvataggio: {ee}")
|
||||
if outFileCounter < self.bodyCounter:
|
||||
self.log.error("Ho salvato meno file rispetto a quelli trovati!")
|
||||
|
||||
Reference in New Issue
Block a user