Skip to content

Commit 735ed31

Browse files
committed
fix(Flask): better arg parsing
1 parent c3059ca commit 735ed31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/opengeodeweb_back/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def run_server(app: Flask) -> None:
145145
default=app.config.get("MINUTES_BEFORE_TIMEOUT"),
146146
help="Number of minutes before the server times out",
147147
)
148-
args = parser.parse_args()
148+
args, _ = parser.parse_known_args()
149149
app.config.update(DATA_FOLDER_PATH=args.data_folder_path)
150150
app.config.update(
151151
EXTENSIONS_FOLDER_PATH=os.path.join(str(args.data_folder_path), "extensions")

0 commit comments

Comments
 (0)