We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8abfe0a commit eedbf9dCopy full SHA for eedbf9d
folium/map.py
@@ -9,7 +9,6 @@
9
"""
10
11
from __future__ import unicode_literals
12
-import numbers
13
import json
14
from collections import OrderedDict
15
@@ -312,9 +311,10 @@ def location(self, value):
312
311
raise ValueError("Location should have two values, [lat, lon]")
313
314
for val in value:
315
- if not isinstance(val, numbers.Rational):
316
- raise TypeError("Location values should be numeric, {val} is not a number".format(val))
317
-
+ try:
+ float(val)
+ except:
+ raise TypeError("Location values should be numeric, {} is not a number".format(val))
318
319
self._location = value
320
0 commit comments