Skip to content
Permalink
Browse files
add deleted exception
  • Loading branch information
fiddlersfan authored and nyalldawson committed May 16, 2021
1 parent 37a34b5 commit d175318870f9a4258e3dabe9b3c54da66025c895
Showing with 4 additions and 0 deletions.
  1. +4 −0 scripts/process_function_template.py
@@ -4,6 +4,7 @@
import os
import json
import glob
from copy import deepcopy

sys.path.append(
os.path.join(
@@ -75,6 +76,9 @@ def quote(v):
for v in json_params['variants']:
if 'arguments' not in v:
raise BaseException("%s: arguments expected for operator" % f)
a_list = list(deepcopy(v['arguments']))
if not 1 <= len(a_list) <= 2:
raise BaseException("%s: 1 or 2 arguments expected for operator found %i" % (f, len(a_list)))

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 d175318

Please sign in to comment.