diff --git a/modules/interfaces/interfaceDbChatObjects.py b/modules/interfaces/interfaceDbChatObjects.py index 40e30eaa..a3b9bc06 100644 --- a/modules/interfaces/interfaceDbChatObjects.py +++ b/modules/interfaces/interfaceDbChatObjects.py @@ -1245,8 +1245,6 @@ class ChatObjects: if not removed: logger.warning(f"No matching file {fileId} found in message {messageId}") return False - - return True except Exception as e: logger.error(f"Error removing file {fileId} from message {messageId}: {str(e)}") @@ -1864,4 +1862,4 @@ def getInterface(currentUser: Optional[User] = None) -> 'ChatObjects': if contextKey not in _chatInterfaces: _chatInterfaces[contextKey] = ChatObjects(currentUser) - return _chatInterfaces[contextKey] \ No newline at end of file + return _chatInterfaces[contextKey]