Skip to content

Remove dependencies besides aiohttp - #6

Draft
hannahherbig wants to merge 2 commits into
racetimeGG:masterfrom
hannahherbig:aiohttp
Draft

Remove dependencies besides aiohttp#6
hannahherbig wants to merge 2 commits into
racetimeGG:masterfrom
hannahherbig:aiohttp

Conversation

@hannahherbig

Copy link
Copy Markdown
Contributor

Every other dependency has features that already in aiohttp so there's no need for the extras. I have changed the code to work with aiohttp only.

Comment thread racetime_bot/bot.py Outdated
continue_on = [
# Exception types that will not cause the bot to shut down.
websockets.ConnectionClosed,
# websockets.ConnectionClosed,

@hannahherbig hannahherbig Oct 13, 2020

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to figure out what should be here for aiohttp websockets

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrew12 Are you intending to resolve this?

@tcprescott tcprescott Nov 18, 2020

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does aiohttp raise an exception on a clean disconnect from the websocket?

@hannahherbig hannahherbig Nov 15, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi from the future, do you guys know any way I could test what happens for a clean disconnect? I think it might just be DisconnectedError or some subclass but not sure.

@deains deains Nov 15, 2021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would probably make sense to continue for all HTTP issues, clean or otherwise since they (probably) don't point to any issue with the bot itself.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen Shot 2021-11-15 at 2 40 48 PM

Looks like I could just use ClientError? Or ClientResponseError and ClientConnectionError

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to ClientError for now. I want to test this then will make this not a draft

@tcprescott

Copy link
Copy Markdown
Contributor

@andrew12 - I'm building a PR on top of this fork that adds support for creating race rooms, and editing existing race rooms, just as a heads up. If this isn't merged yet before this is done, I'll make a PR against this PR's branch with those changes.

I 100% love the concept of just sticking with aiohttp.

@hannahherbig

Copy link
Copy Markdown
Contributor Author

sorry I haven't had a chance to resolve the issues here yet, will see if I can soon

@hannahherbig hannahherbig reopened this Mar 26, 2021
@hannahherbig
hannahherbig marked this pull request as draft March 26, 2021 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants