Commits

Jason R. Coombs committed 38a608b

Ensure the bot doesn't start up without any handlers (seems to happen with python -m pmxbot.core)

Comments (0)

Files changed (1)

 
 	logging.basicConfig(level=logging.INFO, format="%(message)s")
 	_load_library_extensions()
+	if not _handler_registry:
+		raise RuntimeError("No handlers registered")
 
 	class_ = SilentCommandBot if config.silent_bot else LoggingCommandBot