We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d13ce commit b8df643Copy full SHA for b8df643
supabase_functions/_sync/functions_client.py
@@ -95,12 +95,13 @@ def invoke(
95
response_type = invoke_options.get("responseType", "text/plain")
96
97
region = invoke_options.get("region")
98
- if not isinstance(region, FunctionRegion):
99
- warn(f"Use FunctionRegion({region})")
100
- region = FunctionRegion(region)
+ if region:
+ if not isinstance(region, FunctionRegion):
+ warn(f"Use FunctionRegion({region})")
101
+ region = FunctionRegion(region)
102
- if region and region.value != "any":
103
- headers["x-region"] = region.value
+ if region.value != "any":
104
+ headers["x-region"] = region.value
105
106
body = invoke_options.get("body")
107
if isinstance(body, str):
0 commit comments