Skip to content

Commit 4cff61f

Browse files
committed
Updated way how import babel library to use for as command class options
1 parent be27427 commit 4cff61f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
.. _github: https://www.github.com/snide/sphinx_rtd_theme
55
66
"""
7-
from babel.messages import frontend as babel
7+
8+
try:
9+
from babel.messages import frontend as babel
10+
except ImportError:
11+
pass
812
from setuptools import setup
913
from sphinx_rtd_theme import __version__
1014

0 commit comments

Comments
 (0)