Spaces:
Running
Running
add comment
Browse files- modules/toWizard.py +2 -0
modules/toWizard.py
CHANGED
@@ -53,9 +53,11 @@ def check_end(val):
|
|
53 |
|
54 |
def connect(data, text_mapping, i):
|
55 |
target_idx = data['links'][i][1]
|
|
|
56 |
if target_idx==None or target_idx >= len(data['links']):
|
57 |
error('There is an error with the Vizi file, care when you download it.')
|
58 |
return None, None
|
|
|
59 |
current_id = data['BPMN_id'][i]
|
60 |
next_idx = data['links'][target_idx][1]
|
61 |
next_id = data['BPMN_id'][next_idx]
|
|
|
53 |
|
54 |
def connect(data, text_mapping, i):
|
55 |
target_idx = data['links'][i][1]
|
56 |
+
# Check if the target index is valid
|
57 |
if target_idx==None or target_idx >= len(data['links']):
|
58 |
error('There is an error with the Vizi file, care when you download it.')
|
59 |
return None, None
|
60 |
+
|
61 |
current_id = data['BPMN_id'][i]
|
62 |
next_idx = data['links'][target_idx][1]
|
63 |
next_id = data['BPMN_id'][next_idx]
|