Skip to content

Commit

Permalink
Raise AssertionError in case of internal error.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Sep 26, 2021
1 parent 3bc446c commit ec0c4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def list_to_dic(self, ldict):

def split_params(self, params):
if not isinstance(params, str):
self.errors('Parameters can only be a string, received %s' % type(params))
raise AssertionError('Parameters can only be a string, received %s' % type(params))
try:
return split_routeros(params)
except ParseError as e:
Expand Down

0 comments on commit ec0c4a9

Please sign in to comment.