Workaround RTD error to generate the API pages

This commit is contained in:
Diederik van der Boor
2017-09-30 18:47:03 +02:00
parent 7d506ed6af
commit fab687c218
+4 -1
View File
@@ -9,5 +9,8 @@ Please see LICENSE and AUTHORS for more information.
import pkg_resources
try:
__version__ = pkg_resources.require("django-polymorphic")[0].version
except pkg_resources.DistributionNotFound:
__version__ = None # for RTD among others
__version__ = pkg_resources.require("django-polymorphic")[0].version