Skip to content

Commit b3bc6e1

Browse files
committed
Update cdo operator parsing wit DEBUG flag on
1 parent 792c876 commit b3bc6e1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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) > 0 :
318+
operators[op] = int(ios[i][1:len(ios[i]) - 1].split('|')[1])
317319

318320
return operators # }}}
319321

0 commit comments

Comments
 (0)