From 88a49334f2de30ecfb107e7bc5c3d2d79f1f7622 Mon Sep 17 00:00:00 2001 From: Griatch Date: Thu, 17 Oct 2019 00:24:52 +0200 Subject: [PATCH] Fix session retrieve in examine, update changelog --- CHANGELOG.md | 1 + evennia/commands/default/building.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f10a4b8cc9..789f750322 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ without arguments starts a full interactive Python console. - Show warning on `start -l` if settings contains values unsafe for production. - Make code auto-formatted with Black. - Make default `set` command able to edit nested structures (PR by Aaron McMillan) +- Allow running Evennia test suite from core repo with `make test`. ## Evennia 0.9 (2018-2019) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index edfda0bfd1..5158a2ccb2 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -2579,9 +2579,10 @@ class CmdExamine(ObjManipCommand): # we are only interested in specific attributes caller.msg(self.format_attributes(obj, attrname, crop=False)) else: - session = obj.sessions.get()[0] + session = None if obj.sessions.count(): mergemode = "session" + session = obj.sessions.get()[0] elif self.account_mode: mergemode = "account" else: