From: Jeremy Stanley Date: Sat, 12 Mar 2022 15:52:35 +0000 (+0000) Subject: Clarify log message about missing data files X-Git-Tag: 0.5.0~4 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=6c099fea58dcd5cac5faacf8195f0f10cb7f6599;hp=5872d07f0ed969733b9c7e3e82f7c72ca6ef8cee 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. --- 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: