- Deleted the Makefile, `README_TESTING.md`, and several deployment scripts to streamline the project. - Updated `.dockerignore` to exclude unnecessary development files. - Adjusted database schema comments for clarity. - Refactored metrics handling in middleware for improved command extraction and logging. - Enhanced command mappings for buttons and callbacks in constants for better maintainability. - Start refactor voice bot
24 lines
564 B
Python
24 lines
564 B
Python
class VoiceBotError(Exception):
|
||
"""Базовое исключение для voice_bot"""
|
||
pass
|
||
|
||
|
||
class VoiceMessageError(VoiceBotError):
|
||
"""Ошибка при работе с голосовыми сообщениями"""
|
||
pass
|
||
|
||
|
||
class AudioProcessingError(VoiceBotError):
|
||
"""Ошибка при обработке аудио"""
|
||
pass
|
||
|
||
|
||
class DatabaseError(VoiceBotError):
|
||
"""Ошибка базы данных"""
|
||
pass
|
||
|
||
|
||
class FileOperationError(VoiceBotError):
|
||
"""Ошибка при работе с файлами"""
|
||
pass
|