X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=functions.py;h=730d1355d16350f29f96a1c804cd8e58dddfaffb;hp=54ead63646937f2c9ffa46d23beccbde557d92a4;hb=9bde3d55d2131f1a33234a43c0de8b200ddb8f9a;hpb=be2de22859c8f59abe9e1082981e4c3a62e9b7ca diff --git a/functions.py b/functions.py index 54ead63..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' @@ -521,7 +522,7 @@ def check_Rresult(parent, pid) : #except : # BugReport(parent) else : - return None + return True else : if pid != 0 : #try : @@ -530,7 +531,7 @@ def check_Rresult(parent, pid) : #except : # BugReport(parent) else : - return None + return True def print_liste(filename,liste): with open(filename,'w') as f :