You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Based on current directory name {current_dir_name}, the library name is {constants.Reflex.MODULE_NAME}. This package already exists. Please use --library-name to specify a different name."
379
379
)
380
-
raiseclick.exceptions.Exit(code=1)
380
+
raiseSystemExit(1)
381
381
ifnotparts:
382
382
# The folder likely has a name not suitable for python paths.
383
383
console.error(
384
384
f"Could not find a valid library name based on the current directory: got {current_dir_name}."
"The app directory name must start with a letter and can contain letters, numbers, and underscores."
461
460
)
462
-
raiseclick.exceptions.Exit(1)
461
+
raiseSystemExit(1)
463
462
464
463
returnapp_name
465
464
@@ -499,13 +498,13 @@ def assert_in_reflex_dir():
499
498
"""Assert that the current working directory is the reflex directory.
500
499
501
500
Raises:
502
-
Exit: If the current working directory is not the reflex directory.
501
+
SystemExit: If the current working directory is not the reflex directory.
503
502
"""
504
503
ifnotconstants.Config.FILE.exists():
505
504
console.error(
506
505
f"[cyan]{constants.Config.FILE}[/cyan] not found. Move to the root folder of your project, or run [bold]{constants.Reflex.MODULE_NAME} init[/bold] to start a new project."
0 commit comments