mirror of
https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local
synced 2024-12-22 12:23:39 +01:00
try except else
This commit is contained in:
parent
ad2a00cfb9
commit
377297deb7
@ -231,7 +231,7 @@ class EMSL_dump:
|
||||
if "$" in data_elt:
|
||||
if debug:
|
||||
print "Eror",
|
||||
raise Exception("WARNING not bad split")
|
||||
raise Exception("WARNING bad split")
|
||||
|
||||
if elt_long_th == elt_long_exp:
|
||||
d.append([elt, data_elt.strip()])
|
||||
@ -305,18 +305,21 @@ class EMSL_dump:
|
||||
try:
|
||||
basis_data = self.basis_data_row_to_array(
|
||||
text, name, des, elts)
|
||||
break
|
||||
except:
|
||||
time.sleep(0.1)
|
||||
attemps += 1
|
||||
else:
|
||||
break
|
||||
|
||||
try:
|
||||
q_out.put(basis_data)
|
||||
q_in.task_done()
|
||||
except:
|
||||
if debug:
|
||||
print "Fail on q_out.put", basis_data
|
||||
raise
|
||||
else:
|
||||
q_in.task_done()
|
||||
|
||||
|
||||
def enqueue():
|
||||
for [name, path_xml, des, elts] in list_basis_array:
|
||||
|
Loading…
Reference in New Issue
Block a user