mirror of
https://github.com/not-lucky/GeminiKeyManagement.git
synced 2025-12-06 08:44:01 +05:30
using types; way too hard (used gemini a lit bit for help); should have done it from start
This commit is contained in:
@@ -6,6 +6,8 @@ Defines domain-specific exceptions for:
|
||||
- API operation constraints
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
class TermsOfServiceNotAcceptedError(Exception):
|
||||
"""Indicates unaccepted Terms of Service for critical API operations.
|
||||
@@ -15,7 +17,7 @@ class TermsOfServiceNotAcceptedError(Exception):
|
||||
url (str): URL for Terms of Service acceptance portal
|
||||
"""
|
||||
|
||||
def __init__(self, message, url):
|
||||
def __init__(self, message: str, url: str) -> None:
|
||||
self.message = message
|
||||
self.url = url
|
||||
super().__init__(self.message)
|
||||
super().__init__(self.message)
|
||||
Reference in New Issue
Block a user