Skip to content

Commit 645eaba

Browse files
authored
Merge pull request #1663 from knutfrode/dev
removing possible whitespace in strings input to add_readers_from_list
2 parents b02fde4 + b796621 commit 645eaba

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)