Skip to content

Commit 2a9f266

Browse files
mathiscClaire Mathis
authored andcommitted
Update cdo operator parsing when DEBUG flag is on with cdo 1.9.10
1 parent 792c876 commit 2a9f266

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/cdo/cdo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ def __getOperators(self): # {{{
313313
"utf-8")[0:-1].split(os.linesep)))
314314

315315
for i, op in enumerate(ops):
316-
operators[op] = int(ios[i][1:len(ios[i]) - 1].split('|')[1])
316+
_ios_splitted = ios[i][1:len(ios[i]) - 1].split('|')
317+
if len(_ios_splitted) > 1 :
318+
operators[op] = int(_ios_splitted[1])
317319

318320
return operators # }}}
319321

0 commit comments

Comments
 (0)