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

Added create_studio + did a little with exceptions #280

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

FAReTek1
Copy link
Contributor

@FAReTek1 FAReTek1 commented Nov 9, 2024

create_studio()

Added the Session.create_studio() function to create studios to solve an issue (#277). I copy+pasted rate limit code from Session.create_project(). Also added title/desc settings to make it more convenient

exceptions

  • Now using the msg argument in exceptions.Unauthorized() so that you can add more detail to the exception if need be. When receiving a 403/401 status code in the requests wrapper, it will now print the request content which will sometimes be more descriptive than simply: "You are unauthorised"
  • Renamed ConnectionError to CloudConnectionError since ConnectionError is actually a builtin error

Extra Note(s)

  • In cloud_requests.py, I fixed a typo of self.call_even, changing it to self.call_event. In the rare case this is intentional, now you know
  • Also it looks like I pressed ctrl-alt-l again...

FAReTek1 and others added 2 commits November 9, 2024 20:02
…or is a builtin so i renamed it, also i fixed a typo in cloud_requests.py
Signed-off-by: FA ReTek <[email protected]>
@FAReTek1
Copy link
Contributor Author

FAReTek1 commented Nov 9, 2024

Originally from #279

fixed image in pypi info page
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

Successfully merging this pull request may close these issues.

1 participant