fal 0.12.4__py3-none-any.whl → 0.12.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fal might be problematic. Click here for more details.

fal/cli.py CHANGED
@@ -54,6 +54,8 @@ class MainGroup(click.Group):
54
54
  _tracer = get_tracer(__name__)
55
55
 
56
56
  def invoke(self, ctx):
57
+ from click.exceptions import Abort, ClickException, Exit
58
+
57
59
  execution_info = ExecutionInfo(debug=ctx.params["debug"])
58
60
  qualified_name = " ".join([ctx.info_name] + argv[1:])
59
61
  invocation_id = execution_info.invocation_id
@@ -68,6 +70,9 @@ class MainGroup(click.Group):
68
70
  command=qualified_name,
69
71
  )
70
72
  return super().invoke(ctx)
73
+ except (EOFError, KeyboardInterrupt, ClickException, Exit, Abort):
74
+ # let click's main handle these
75
+ raise
71
76
  except Exception as exception:
72
77
  logger.error(exception)
73
78
  if execution_info.debug:
@@ -123,10 +128,7 @@ class AliasCommand(click.Command):
123
128
  return self._wrapped.__getattribute__(__name)
124
129
 
125
130
 
126
- @click.group(
127
- cls=MainGroup,
128
- context_settings={"allow_interspersed_args": True},
129
- )
131
+ @click.group(cls=MainGroup)
130
132
  @click.option(
131
133
  "--debug", is_flag=True, help="Enable detailed errors and verbose logging."
132
134
  )
@@ -574,7 +576,10 @@ def _get_user_id() -> str:
574
576
  raise api.FalServerlessError(content["detail"])
575
577
  try:
576
578
  full_user_id = user_details_response.parsed.user_id
577
- user_id = full_user_id.split("|")[1]
579
+ _provider, _, user_id = full_user_id.partition("|")
580
+ if not user_id:
581
+ user_id = full_user_id
582
+
578
583
  return user_id
579
584
  except Exception as e:
580
585
  raise api.FalServerlessError(f"Could not parse the user data: {e}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fal
3
- Version: 0.12.4
3
+ Version: 0.12.5
4
4
  Summary: fal is an easy-to-use Serverless Python Framework
5
5
  Author: Features & Labels
6
6
  Author-email: hello@fal.ai
@@ -48,7 +48,7 @@ fal/apps.py,sha256=T387WJDtKpKEytu27b2AVqqo0uijKrRT9ymk6FcRiEw,6705
48
48
  fal/auth/__init__.py,sha256=ZnR1fxonzDk0UhS3-i33Kq2xOrN-leYXvJ-Ddnj94xc,3594
49
49
  fal/auth/auth0.py,sha256=Lb63u99fjZVIpbkAicVL1B5V6iPb2mE04bwHmorXbu4,5542
50
50
  fal/auth/local.py,sha256=lZqp4j32l2xFpY8zYvLoIHHyJrNAJDcm5MxgsLpY_pw,1786
51
- fal/cli.py,sha256=-3P9O3QORA0NolZR9juR8fv59JdJo37_puwUcinzDlY,17299
51
+ fal/cli.py,sha256=mvYl6-wlrofY9wFzdjAO31ut2RVvwnXf6aIqFkxNWmQ,17526
52
52
  fal/console/__init__.py,sha256=ernZ4bzvvliQh5SmrEqQ7lA5eVcbw6Ra2jalKtA7dxg,132
53
53
  fal/console/icons.py,sha256=De9MfFaSkO2Lqfne13n3PrYfTXJVIzYZVqYn5BWsdrA,108
54
54
  fal/console/ux.py,sha256=4vj1aGA3grRn-ebeMuDLR6u3YjMwUGpqtNgdTG9su5s,485
@@ -82,7 +82,7 @@ fal/toolkit/optimize.py,sha256=OIhX0T-efRMgUJDpvL0bujdun5SovZgTdKxNOv01b_Y,1394
82
82
  fal/toolkit/utils/__init__.py,sha256=b3zVpm50Upx1saXU7RiV9r9in6-Chs4OU9KRjBv7MYI,83
83
83
  fal/toolkit/utils/download_utils.py,sha256=bigcLJjLK1OBAGxpYisJ0-5vcQCh0HAPuCykPrcCNd0,15596
84
84
  fal/workflows.py,sha256=2xMC4dybiAv05eEua_YpKRAs395YR2UVKvhGS0HZdm8,14155
85
- fal-0.12.4.dist-info/entry_points.txt,sha256=nE9GBVV3PdBosudFwbIzZQUe_9lfPR6EH8K_FdDASnM,62
86
- fal-0.12.4.dist-info/METADATA,sha256=lcJ7E_Q3-0l1rtEIb-5tc2MLY4rpzIVSE7UXFh1D780,2937
87
- fal-0.12.4.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
88
- fal-0.12.4.dist-info/RECORD,,
85
+ fal-0.12.5.dist-info/entry_points.txt,sha256=nE9GBVV3PdBosudFwbIzZQUe_9lfPR6EH8K_FdDASnM,62
86
+ fal-0.12.5.dist-info/METADATA,sha256=CG9k8-tOXQ9rvTFC4mLc44pj7FDNLpTpyYwEeBp5n4w,2937
87
+ fal-0.12.5.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
88
+ fal-0.12.5.dist-info/RECORD,,
File without changes