diff --git a/notfound.py b/notfound.py index 77a4a7c..9e75d8a 100644 --- a/notfound.py +++ b/notfound.py @@ -37,4 +37,7 @@ def create() -> None: ui.button('返回首页', on_click=lambda: ui.navigate.to('/')) \ - .classes('items-center w-full').props('rounded') \ No newline at end of file + .classes('items-center w-full').props('rounded') + +if __name__ not in {"__main__", "__mp_main__"}: + raise Exception('不支持单测模式,请从main.py启动') \ No newline at end of file