Skip to content

Commit

Permalink
Merge pull request #43 from sztaylor/master.timeout_fix
Browse files Browse the repository at this point in the history
Fix variable being overwritten
  • Loading branch information
gfursin authored Feb 5, 2022
2 parents b8b23f6 + 5774779 commit 63d45ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/program/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2918,7 +2918,7 @@ def process_in_dir(i):
ck.out(y)
ck.out('')

ry=os.system(y)
ry2=os.system(y)

y=tosd.get('remote_pull_post','').replace('$#device#$',xtdid)
if y!='':
Expand All @@ -2931,8 +2931,8 @@ def process_in_dir(i):
ck.out(y)
ck.out('')

ry=os.system(y)
if ry>0:
ry2=os.system(y)
if ry2>0:
return {'return':1, 'error':'pulling from remote device failed'}

# Check if print files
Expand Down Expand Up @@ -3318,7 +3318,7 @@ def process_in_dir(i):
ccc['run_success']='no'
ccc['run_success_bool']=False
ccc['fail_reason']=ry['error']
if rx>0 and vcmd.get('ignore_return_code','').lower()!='yes':
elif rx>0 and vcmd.get('ignore_return_code','').lower()!='yes':
misc['run_success']='no'
misc['run_success_bool']=False
misc['fail_reason']='return code '+str(rx)+' !=0 '
Expand Down

0 comments on commit 63d45ec

Please sign in to comment.