Skip to content

Commit

Permalink
fix 43080 and improve Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
fiddlersfan authored and nyalldawson committed May 16, 2021
1 parent 783f502 commit 37a34b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/process_function_template.py
Expand Up @@ -74,9 +74,7 @@ def quote(v):
if json_params['type'] == 'operator':
for v in json_params['variants']:
if 'arguments' not in v:
raise BaseException("%s: arguments expected for operator")
if len(list(v['arguments'])) < 1 or len(list(v['arguments'])) > 2:
raise BaseException("%s: 1 or 2 arguments expected for operator")
raise BaseException("%s: arguments expected for operator" % f)

cpp.write("\n\n functionHelpTexts().insert( QStringLiteral( {0} ),\n Help( QStringLiteral( {0} ), tr( \"{1}\" ), tr( \"{2}\" ),\n QList<HelpVariant>()".format(
name, json_params['type'], json_params['description'])
Expand Down

0 comments on commit 37a34b5

Please sign in to comment.