acoomans / flask-autodoc

Flask autodoc automatically creates an online documentation for your flask application.
MIT License
98 stars 49 forks source link

Raise an error with a useful message if the app is not set up. #31

Open jwg4 opened 7 years ago

jwg4 commented 7 years ago

If the app is not initialized in the Autodoc object, either through __init__ or init_app, calls to doc() seem to work correctly, there is a fairly cryptic error when calling html().

Explicitly raise an exception if self.app is not defined here, to make it easier to debug this problem.

jwg4 commented 7 years ago

Hi, it would be great if @acoomans or someone else could take a look at this. Thanks!