diff --git a/evennia/commands/default/system.py b/evennia/commands/default/system.py index 9dd70ca69e..71be22ecd6 100644 --- a/evennia/commands/default/system.py +++ b/evennia/commands/default/system.py @@ -108,10 +108,8 @@ class CmdShutdown(MuxCommand): def func(self): "Define function" - try: - # Only allow shutdown if caller has session - self.caller.sessions[0] - except Exception: + # Only allow shutdown if caller has session + if not self.caller.sessions.get(): return self.msg('Shutting down server ...') announcement = "\nServer is being SHUT DOWN!\n"