NAFTeam / NAFF

A Python API wrapper for Discord
https://naff.info
MIT License
117 stars 24 forks source link

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

Closed silasary closed 1 year ago

silasary commented 1 year ago

What type of pull request is this?

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