Run "futurize -1 -w -n ."
This commit is contained in:
parent
7f11256fc8
commit
06c3dc0ed3
55 changed files with 281 additions and 244 deletions
|
|
@ -3,4 +3,5 @@ This sub-package defines the basic in-game "Object". All in-game
|
|||
objects inherit from classes in this package.
|
||||
|
||||
"""
|
||||
from objects import DefaultObject, DefaultRoom, DefaultExit, DefaultCharacter
|
||||
from __future__ import absolute_import
|
||||
from .objects import DefaultObject, DefaultRoom, DefaultExit, DefaultCharacter
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ class ObjectDB(TypedObject):
|
|||
errmsg = "Error: %s.location = %s creates a location loop." % (self.key, location)
|
||||
logger.log_errmsg(errmsg)
|
||||
raise #RuntimeError(errmsg)
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
errmsg = "Error (%s): %s is not a valid location." % (str(e), location)
|
||||
logger.log_errmsg(errmsg)
|
||||
raise #Exception(errmsg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue