Skip to content

Conversation

reaperhulk
Copy link
Member

fixes #2717

Open to better language for the exception (and should it be a ValueError?)

@reaperhulk reaperhulk added this to the Thirteenth Release milestone Mar 12, 2016
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @alex, @skeuomorf and @public to be potential reviewers

@codecov-io
Copy link

Current coverage is 100.00%

Merging #2812 into master will not affect coverage as of 0b8397b

@@            master   #2812   diff @@
======================================
  Files          129     129       
  Stmts        13980   13988     +8
  Branches      1479    1480     +1
  Methods          0       0       
======================================
+ Hit          13980   13988     +8
  Partial          0       0       
  Missed           0       0       

Review entire Coverage Diff as of 0b8397b

Powered by Codecov. Updated on successful CI builds.

if len(backends) == 0:
raise ValueError(
"Multibackend cannot be initialized with no backends. If you "
"are seeing this error when trying to use default_backend "
Copy link
Member

Choose a reason for hiding this comment

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

Can you put parens after default_backend?

alex added a commit that referenced this pull request Mar 12, 2016
make multibackend error with an empty list.
@alex alex merged commit 139b85f into pyca:master Mar 12, 2016
@reaperhulk reaperhulk deleted the fix-2717 branch March 12, 2016 13:13
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Throw a specific exception when no backends are available
4 participants