Skip to content

Commit ac925db

Browse files
authored
Fix branca version test (#1653)
1 parent bd910b4 commit ac925db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

folium/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
__version__ = "unknown"
5050

5151

52-
if tuple(int(x) for x in branca.__version__.split('.')[:2]) < (0, 3):
52+
if branca.__version__ != 'unknown' and tuple(int(x) for x in branca.__version__.split('.')[:2]) < (0, 3):
5353
raise ImportError('branca version 0.3.0 or higher is required. '
5454
'Update branca with e.g. `pip install branca --upgrade`.')
5555

0 commit comments

Comments
 (0)