Skip to content

Commit

Permalink
split filter: py3 support (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumkincpp authored and jmcgill298 committed Dec 28, 2019
1 parent 5774bfd commit 3bd7d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter_plugins/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def split_string(string, separator=' '):
try:
return string.split(separator)
except Exception, e:
except Exception as e:
raise errors.AnsibleFilterError('split plugin error: %s, string=%s' % str(e),str(string) )


Expand Down

0 comments on commit 3bd7d68

Please sign in to comment.