Skip to content
Permalink
Browse files
fix 43080 and improve Exception
  • Loading branch information
fiddlersfan authored and nyalldawson committed May 16, 2021
1 parent 783f502 commit 37a34b58203d68c14aadf7356fcd745e84c519e6
Showing with 1 addition and 3 deletions.
  1. +1 −3 scripts/process_function_template.py
@@ -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'])

0 comments on commit 37a34b5

Please sign in to comment.