jugmac00 / flask-reuploaded

File uploads for Flask.
https://github.com/jugmac00/flask-reuploaded
MIT License
63 stars 12 forks source link

possible wrong exception text #76

Closed jugmac00 closed 3 years ago

jugmac00 commented 3 years ago

When accessing UploadSet.config possible an AttributeError could be raised, which then re-raises a RuntimeError as following:

raise RuntimeError("cannot access configuration outside request")

The exception text is misleading, as the error can only be raised when configure_uploads was not executed.