X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fmisc.py;h=b0b729089a00b7896a738217860c05a9ad6b8ac5;hp=157096c0cb8ba2fa491b6686f92142b5c18dcc89;hb=cf48b2ab0a6c287a3d6f3d9a1a4dac9bb49c0afc;hpb=705fe9a0a0e5bc25989cbac3944dad5763f69446 diff --git a/mudpy/misc.py b/mudpy/misc.py index 157096c..b0b7290 100644 --- a/mudpy/misc.py +++ b/mudpy/misc.py @@ -2294,6 +2294,11 @@ def command_set(actor, parameters): else: try: universe.contents[element].set(facet, value) + except PermissionError: + message = ('The "%s" element is kept in read-only file ' + '"%s" and cannot be altered.' % + (element, universe.contents[ + element].origin.filename)) except ValueError: message = ('Value "%s" of type "%s" cannot be coerced ' 'to the correct datatype for facet "%s".' %