(uuid_string)
| 36 | |
| 37 | |
| 38 | def validate_uuid(uuid_string) -> uuid.UUID: |
| 39 | try: |
| 40 | return uuid.UUID(uuid_string, version=4) |
| 41 | except ValueError: |
| 42 | raise InvalidAPIKeyError(401, "Invalid API KEY format") |
| 43 | except TypeError: |
| 44 | raise InvalidAPIKeyError(401, "Invalid API KEY format") |
| 45 | except Exception as e: |
| 46 | raise RuntimeError(f"Error validating UUID: {e}") |
| 47 | |
| 48 | |
| 49 | async def get_premium_status(supabase: AsyncSupabaseClient = None, user_id: str = None) -> bool: |
no test coverage detected
searching dependent graphs…