Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

fix: Fail loudly if we attempt to perform a setupless load on an extension module that isn't actually an extension #716

Merged
merged 1 commit into from
Nov 6, 2022

Conversation

silasary
Copy link
Collaborator

@silasary silasary commented Nov 5, 2022

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

The implementation of #671 introduced a bug where it was impossible to test whether a module actually contains an extension, as it would happily find 0 extensions and not throw an error.

This PR causes the client to correctly throw an exception if there is no extension to be loaded.

Changes

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

…nsion module that isn't actually an extension
@LordOfPolls LordOfPolls merged commit 570b3a5 into 2.x Nov 6, 2022
@silasary silasary deleted the fail-loud branch November 14, 2022 06:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants