Skip to content

Commit 765a6a4

Browse files
committed
fix path check
1 parent 57d47da commit 765a6a4

File tree

1 file changed

+3
-3
lines changed
  • src/py/reactpy/reactpy/backend

1 file changed

+3
-3
lines changed

src/py/reactpy/reactpy/backend/asgi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ def __init__(
9999
"The first argument to ReactPy(...) must be a component or an "
100100
"ASGI application."
101101
)
102-
if check_path(dispatcher_path):
102+
if not check_path(dispatcher_path):
103103
raise ValueError("Invalid `dispatcher_path`.")
104-
if check_path(web_modules_path):
104+
if not check_path(web_modules_path):
105105
raise ValueError("Invalid `web_modules_path`.")
106-
if check_path(static_path):
106+
if not check_path(static_path):
107107
raise ValueError("Invalid `static_path`.")
108108

109109
async def __call__(

0 commit comments

Comments
 (0)