Skip to content

Commit 5527604

Browse files
authored
Merge pull request #239 from Geode-solutions/fix/run-server
fix(Flask): better arg parsing
2 parents c3059ca + 5bcb52c commit 5527604

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ werkzeug==3.1.2
6060
# flask
6161
# flask-cors
6262

63-
opengeodeweb-microservice==1.*,>=1.1.1

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)