X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=lib%2Fmudpy%2Fdata.py;h=f254dc6dc67a057871f8f79870bd566dbea8a4f5;hp=b3ca5a88303e36348f15d6d50b96a666ea56f2ce;hb=b30249dada13540bf31fcd8b442efa3802717626;hpb=9e357334820986ea1cbb73fc92123437cf74b226 diff --git a/lib/mudpy/data.py b/lib/mudpy/data.py index b3ca5a8..f254dc6 100644 --- a/lib/mudpy/data.py +++ b/lib/mudpy/data.py @@ -29,11 +29,12 @@ class DataFile: self.data = yaml.load(open(self.filename)) except FileNotFoundError: # it's normal if the file is one which doesn't exist yet + log_entry = ("File %s is unavailable." % self.filename, 6) try: - mudpy.misc.log("Couldn't read %s file." % self.filename, 6) + mudpy.misc.log(*log_entry) except NameError: # happens when we're not far enough along in the init process - pass + self.universe.setup_loglines.append(log_entry) if not hasattr(self.universe, "files"): self.universe.files = {} self.universe.files[self.filename] = self