Skip to content
Snippets Groups Projects

P2P

Open
Jammer, Timrequested to merge
p2p into main
4 files
+ 56
50
Compare changes
  • Side-by-side
  • Inline

Files

+ 1
1
@@ -381,7 +381,7 @@ class TemplateManager:
@@ -381,7 +381,7 @@ class TemplateManager:
old_instruction = [old_instruction]
old_instruction = [old_instruction]
idxs_to_replace = self.__get_instruction_index(old_instruction)
idxs_to_replace = self.__get_instruction_index(old_instruction)
if len(idxs_to_replace) == len(new_instruction_list):
if len(idxs_to_replace) != len(new_instruction_list):
raise ValueError("Number of instructions to Replace does not match number of given instructions")
raise ValueError("Number of instructions to Replace does not match number of given instructions")
for (index, replacement) in zip(idxs_to_replace, new_instruction_list):
for (index, replacement) in zip(idxs_to_replace, new_instruction_list):
Loading