Skip to content

Commit cabe8fa

Browse files
committed
wrong len check
1 parent 2ca1781 commit cabe8fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/cdo/cdo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def __getOperators(self): # {{{
314314

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

320320
return operators # }}}

0 commit comments

Comments
 (0)