[Bitbucket on-prem] Errors processing
See original GitHub issueHello,
I just recently started to use this framework and quickly found you myself writing a lot of “safety belts” with try/except. For example, if I want to check whether the Bitbucket repo exist, I would use bitbucket.get_repo(project_key, repo_slug)
but it must be wrapped into try/except because if repo doesn’t exist I won’t receive None
or something similar; instead, framework will fail with an exception and in order to process it properly I am parsing Exception’s with something like e.response.content.decode("utf8")["errors"]
in a try to find out what exactly happened.
I’m wondering what was the driving decision for this approach or maybe I am missing something such as proper errors processing, etc.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Solved: Bitbucket Cloud JIRA Server Connection - API Error
Solved: We're trying to set up connection between Bitbucket Cloud & JIRA (on-prem) server as per the steps outlined -
Read more >Bitbucket Overview
Cloud Server Data center
Git repository hosting Cloud Server Data center
Branch permissions Cloud Server Data center
Jira Software integration Cloud Server Data center
Read more >Bitbucket Down? Bitbucket Issues? That's Why You Need ...
#4 Bitbucket down as an effect of software and hardware failures ... Losing access to your Bitbucket data could be also influenced by...
Read more >Bitbucket Server Integration - Jenkins Plugins
Link directly from Bitbucket to the logs for each build. The plugin streamlines the entire configuration process and removes the need for multiple...
Read more >Build repositories from Bitbucket Server - Google Cloud
Creating a Bitbucket Server trigger. This sections explains how you can connect your Bitbucket Server repositories to Cloud Build and create a trigger...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@AjaxOdessa Following code should be enough:
Yeah, I got it by
Thank you!