Skip to content

Commit b796621

Browse files
committed
removing possible whitespace in strings input to add_readers_from_list
1 parent b02fde4 commit b796621

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

opendrift/models/basemodel/environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def add_readers_from_list(self,
254254

255255
if isinstance(urls, str):
256256
urls = [urls]
257+
urls = [u.strip() for u in urls] # strip whitespace
257258
if lazy is True:
258259
from opendrift.readers.reader_lazy import Reader
259260
readers = [Reader(u) for u in urls]

0 commit comments

Comments
 (0)