We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 493fba1 + fea4886 commit 92b557dCopy full SHA for 92b557d
1 file changed
src/phase/utils/phase_io.py
@@ -49,6 +49,10 @@ def __init__(self, init=True, pss=None, host=None):
49
app_secret = pss
50
self._api_host = host
51
52
+ # Check if app_secret is None
53
+ if app_secret is None:
54
+ raise ValueError("Phase token (pss) is missing")
55
+
56
# Determine the type of the token (service token or user token)
57
self.is_service_token = pss_service_pattern.match(app_secret) is not None
58
self.is_user_token = pss_user_pattern.match(app_secret) is not None
0 commit comments