Skip to content

Commit a67cb11

Browse files
vishalbolludeliahu
authored andcommitted
Assert API version before inspecting args in python (#789)
(cherry picked from commit 3b63588)
1 parent 5b4ab6a commit a67cb11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/workloads/cortex/serve/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040

4141
def start(args):
42-
assert_api_version()
4342
storage = S3(bucket=os.environ["CORTEX_BUCKET"], region=os.environ["AWS_REGION"])
4443
try:
4544
raw_api_spec = get_spec(storage, args.cache_dir, args.spec)
@@ -185,6 +184,7 @@ def extract_waitress_params(config):
185184

186185

187186
def main():
187+
assert_api_version()
188188
parser = argparse.ArgumentParser()
189189
na = parser.add_argument_group("required named arguments")
190190
na.add_argument("--port", type=int, required=True, help="port (on localhost) to use")

0 commit comments

Comments
 (0)