Skip to content
Snippets Groups Projects
Commit ea610c6c authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

normalize-usercode: allow changes in get_sample signature

parent bf808e65
No related branches found
No related tags found
No related merge requests found
...@@ -30,9 +30,8 @@ def restitute_sample(ti, tc): ...@@ -30,9 +30,8 @@ def restitute_sample(ti, tc):
if not mn: if not mn:
raise Exception("Normalized code has no function get_sample") raise Exception("Normalized code has no function get_sample")
if mn.group(2) != header: if mn.group(2) != header:
raise Exception( print(f'WARNING: Signature of function get_sample has changed from "{header}" to '
f'Signature of function get_sample has changed from "{header}" to "{mn.group(1)}"' '"{mn.group(1)}"')
)
t = re.sub(pat, mi.group(1), tc) t = re.sub(pat, mi.group(1), tc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment