Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider be3b3dbd rédigé par rlaz's avatar rlaz
Parcourir les fichiers

Simplify messaging for missing files

parent f6eacfde
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -144,7 +144,7 @@ class Lg(object):
except:
# Create an empty graph if a file cannot be found.
# Set the error flag.
sys.stderr.write(str(sys.exc_info()[0]))
#sys.stderr.write(str(sys.exc_info()[0]))
sys.stderr.write(" !! IO Error (cannot open): " + fileName + "\n")
self.error = True
return
......@@ -1298,15 +1298,15 @@ class Lg(object):
# WARN about absent nodes/edges; indicate that there is an error.
if len(self.absentNodes) > 0:
sys.stderr.write(
" !! Inserting ABSENT nodes for:\n "
+ self.file
+ " vs.\n "
+ lg2.file
+ "\n "
+ str(sorted(list(self.absentNodes)))
+ "\n"
)
#sys.stderr.write(
# " !! Inserting ABSENT nodes for "
# + self.file
# + " vs. "
# + lg2.file
# + "\n"
# + str(sorted(list(self.absentNodes)))
# + "\n"
#)
self.error = True
# Add "absent" nodes.
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter