Skip to content

Commit d7999f4

Browse files
committed
don't use match syntax
1 parent d9bd8d0 commit d7999f4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

runpod/serverless/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,12 @@ def start(config: Dict[str, Any]):
173173

174174
# --------------------------------- SLS-Core --------------------------------- #
175175

176-
match os.getenv("RUNPOD_SLS_CORE"):
177-
case None if os.getenv("RUNPOD_USE_CORE") is not None:
176+
if os.getenv("RUNPOD_SLS_CORE") is None and os.getenv("RUNPOD_USE_CORE") is not None:
178177
log.warn("RUNPOD_USE_CORE is deprecated. Please use RUNPOD_SLS_CORE instead.")
179178
core.main(config)
180179
return
181180

182-
case x if x.lower() in ["1", "t", "true"]:
181+
elif os.getenv("RUNPOD_SLS_CORE","false").lower() in ["1", "t", "true"]:
183182
core.main(config)
184183
return
185184

0 commit comments

Comments
 (0)