Clarify log message about missing data files
[mudpy.git] / mudpy / data.py
index eeea8fb..b45cd67 100644 (file)
@@ -1,6 +1,6 @@
 """Data interface functions for the mudpy engine."""
 
 """Data interface functions for the mudpy engine."""
 
-# Copyright (c) 2004-2021 mudpy authors. Permission to use, copy,
+# Copyright (c) 2004-2022 mudpy authors. Permission to use, copy,
 # modify, and distribute this software is granted under terms
 # provided in the LICENSE file distributed with this software.
 
 # modify, and distribute this software is granted under terms
 # provided in the LICENSE file distributed with this software.
 
@@ -63,7 +63,8 @@ class Data:
         except FileNotFoundError:
             # it's normal if the file is one which doesn't exist yet
             self.data = {}
         except FileNotFoundError:
             # it's normal if the file is one which doesn't exist yet
             self.data = {}
-            log_entry = ("File %s is unavailable." % self.source, 6)
+            log_entry = (
+                "File %s was not found and will be created." % self.source, 6)
         try:
             mudpy.misc.log(*log_entry)
         except NameError:
         try:
             mudpy.misc.log(*log_entry)
         except NameError: