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): ...@@ -144,7 +144,7 @@ class Lg(object):
except: except:
# Create an empty graph if a file cannot be found. # Create an empty graph if a file cannot be found.
# Set the error flag. # 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") sys.stderr.write(" !! IO Error (cannot open): " + fileName + "\n")
self.error = True self.error = True
return return
...@@ -1298,15 +1298,15 @@ class Lg(object): ...@@ -1298,15 +1298,15 @@ class Lg(object):
# WARN about absent nodes/edges; indicate that there is an error. # WARN about absent nodes/edges; indicate that there is an error.
if len(self.absentNodes) > 0: if len(self.absentNodes) > 0:
sys.stderr.write( #sys.stderr.write(
" !! Inserting ABSENT nodes for:\n " # " !! Inserting ABSENT nodes for "
+ self.file # + self.file
+ " vs.\n " # + " vs. "
+ lg2.file # + lg2.file
+ "\n " # + "\n"
+ str(sorted(list(self.absentNodes))) # + str(sorted(list(self.absentNodes)))
+ "\n" # + "\n"
) #)
self.error = True self.error = True
# Add "absent" nodes. # 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