BenjiELCA commited on
Commit
3e6f6c8
1 Parent(s): 7440d31

correct bug with None value

Browse files
Files changed (1) hide show
  1. modules/toWizard.py +1 -1
modules/toWizard.py CHANGED
@@ -53,7 +53,7 @@ def check_end(val):
53
 
54
  def connect(data, text_mapping, i):
55
  target_idx = data['links'][i][1]
56
- if 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]
 
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]