From 6c099fea58dcd5cac5faacf8195f0f10cb7f6599 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 12 Mar 2022 15:52:35 +0000 Subject: [PATCH] Clarify log message about missing data files When files are going to be written to and don't exist yet, such as on new installations, make it clearer in the log that this is not actually a problem. --- mudpy/data.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mudpy/data.py b/mudpy/data.py index eeea8fb..b45cd67 100644 --- a/mudpy/data.py +++ b/mudpy/data.py @@ -1,6 +1,6 @@ """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. @@ -63,7 +63,8 @@ class 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: -- 2.11.0