Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarantine answer does not implement encode method #10

Open
Bobsans opened this issue Aug 17, 2023 · 0 comments
Open

Quarantine answer does not implement encode method #10

Bobsans opened this issue Aug 17, 2023 · 0 comments

Comments

@Bobsans
Copy link

Bobsans commented Aug 17, 2023

Example code:

async def _on_end_of_message(cmd: ppm.EndOfMessage) -> AbstractResponse:
    try:
        # process data
    except Exception as ex:
        logger.error(f'Unexpected error: {ex}', exc_info=True)

    return ppm.Quarantine(reason='Will be processed later')

And result is:
TypeError: Can't instantiate abstract class Quarantine with abstract method encode

By code also class Quarantine not implement method encode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant