mirror of
https://github.com/not-lucky/GeminiKeyManagement.git
synced 2025-12-06 08:44:01 +05:30
refactor: enhance code structure and add Terms of Service handling for API interactions
This commit is contained in:
10
gemini_key_manager/exceptions.py
Normal file
10
gemini_key_manager/exceptions.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""
|
||||
Custom exceptions for the Gemini Key Management script.
|
||||
"""
|
||||
|
||||
class TermsOfServiceNotAcceptedError(Exception):
|
||||
"""Raised when the Terms of Service for a required API have not been accepted."""
|
||||
def __init__(self, message, url):
|
||||
self.message = message
|
||||
self.url = url
|
||||
super().__init__(self.message)
|
||||
Reference in New Issue
Block a user