Skip to content

Commit 08dafad

Browse files
committed
reformatting error to be py2+py3 compatible
1 parent f2f7f8d commit 08dafad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

folium/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ def write_png(array):
297297

298298
array = np.atleast_3d(array)
299299
if array.shape[2] not in [1, 3, 4]:
300-
raise ValueError, "Data must be NxM (mono), " + \
301-
"NxMx3 (rgb), or NxMx4 (rgba)"
300+
raise ValueError("Data must be NxM (mono), " + \
301+
"NxMx3 (rgb), or NxMx4 (rgba)")
302302

303303
# normalize to uint8 if it isn't already
304304
if array.dtype != 'uint8':

0 commit comments

Comments
 (0)