We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08b55d9 commit 9d8ead4Copy full SHA for 9d8ead4
1 file changed
cforge/profile_utils.py
@@ -218,8 +218,8 @@ def get_active_profile() -> AuthProfile:
218
"""
219
if (store := load_profile_store()) and store.active_profile_id:
220
profile = store.profiles.get(store.active_profile_id)
221
- if not profile:
222
- raise ValueError("BAD STATE: Profile store active profile id not found in profiles")
+ # This should be unreachable due to validation on loading
+ assert profile, "BAD STATE: Profile store active profile id not found in profiles"
223
return profile
224
225
# Check if Desktop app has created a default profile
0 commit comments