diff --git a/evennia/server/portal/portal.py b/evennia/server/portal/portal.py index b8048185e2..fd23d2a938 100644 --- a/evennia/server/portal/portal.py +++ b/evennia/server/portal/portal.py @@ -247,7 +247,7 @@ application = service.Application("Portal") if ("--nodaemon" not in sys.argv - and not hasattr(settings, "_TEST_ENVIRONMENT") and settings._TEST_ENVIRONMENT): + and not (hasattr(settings, "_TEST_ENVIRONMENT") and settings._TEST_ENVIRONMENT)): # custom logging logfile = logger.WeeklyLogFile( os.path.basename(settings.PORTAL_LOG_FILE), diff --git a/evennia/server/server.py b/evennia/server/server.py index b20549503e..a9309b8418 100644 --- a/evennia/server/server.py +++ b/evennia/server/server.py @@ -648,7 +648,7 @@ except OperationalError: application = service.Application("Evennia") if ("--nodaemon" not in sys.argv - and not hasattr(settings, "_TEST_ENVIRONMENT") and settings._TEST_ENVIRONMENT): + and not (hasattr(settings, "_TEST_ENVIRONMENT") and settings._TEST_ENVIRONMENT)): # custom logging, but only if we are not running in interactive mode logfile = logger.WeeklyLogFile( os.path.basename(settings.SERVER_LOG_FILE),