diff --git a/panel/command/__init__.py b/panel/command/__init__.py index be5ef52982..595d66a530 100644 --- a/panel/command/__init__.py +++ b/panel/command/__init__.py @@ -91,7 +91,7 @@ def main(args: list[str] | None = None): try: ret = parsed_args.invoke(parsed_args) except Exception as e: - if hasattr(config, "dev") and config.dev: + if config.autoreload: raise e die("ERROR: " + str(e)) else: