Closed jugmac00 closed 3 years ago
When accessing UploadSet.config possible an AttributeError could be raised, which then re-raises a RuntimeError as following:
UploadSet.config
AttributeError
RuntimeError
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.
configure_uploads
When accessing
UploadSet.config
possible anAttributeError
could be raised, which then re-raises aRuntimeError
as following:The exception text is misleading, as the error can only be raised when
configure_uploads
was not executed.