X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=functions.py;h=730d1355d16350f29f96a1c804cd8e58dddfaffb;hp=8abda95b512de55c0d846674621b30f4f37390cd;hb=7f5e0ba6ece181a04d872a7b6eeb2f13b33aa455;hpb=d33694ef233bd4a28e69d88e9eef3c5c129442fe diff --git a/functions.py b/functions.py index 8abda95..730d135 100644 --- a/functions.py +++ b/functions.py @@ -64,7 +64,7 @@ class History : tosave['corpus'] = analyse['corpus'] tosave['name'] = analyse['name'] acorpus_uuid = analyse['corpus'] - if acorpus_uuid in self.ordercorpus : + if acorpus_uuid in self.corpus : if 'analyses' in self.history[self.ordercorpus[acorpus_uuid]] : self.history[self.ordercorpus[acorpus_uuid]]['analyses'].append(tosave) else : @@ -511,6 +511,7 @@ def check_Rresult(parent, pid) : if isinstance(pid, Popen) : if pid.returncode != 0 : error = pid.communicate() + print error error = [str(error[0]), error[1]] if error[1] is None : error[1] = 'None' @@ -520,6 +521,8 @@ def check_Rresult(parent, pid) : return False #except : # BugReport(parent) + else : + return True else : if pid != 0 : #try : @@ -527,6 +530,8 @@ def check_Rresult(parent, pid) : return False #except : # BugReport(parent) + else : + return True def print_liste(filename,liste): with open(filename,'w') as f :