Stop doc building from crushing if no objpool
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Mon, 22 Apr 2013 13:41:45 +0000 (16:41 +0300)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Mon, 22 Apr 2013 13:41:45 +0000 (16:41 +0300)
docs/conf.py

index adebf91..8aa6b79 100644 (file)
@@ -60,8 +60,11 @@ copyright = u'2013, GRNET'
 # The short X.Y version.
 version = '0.8'
 # The full version, including alpha/beta/rc tags.
-import kamaki
-release = kamaki.__version__
+try:
+    import kamaki
+    release = kamaki.__version__
+except ImportError:
+    release = version
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.