File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,8 @@ def get_query_text():
93
93
# Vars are where it retrieves the app outputs (the values you entered) into the query
94
94
values = {k : v for k , v in zip (pore_query_dict .keys (), app .outputs )}
95
95
96
- try :
96
+ if root . winfo_exists () :
97
97
root .destroy ()
98
- except :
99
- pass
100
98
101
99
return values
102
100
@@ -170,7 +168,7 @@ def run_search(interface=None):
170
168
query_report = str ()
171
169
# Error out if the compound name given is empty
172
170
if len ("" .join (void_search_dict .values ())) == 0 :
173
- interface .show_script_error ('''Nothing was given to search for. Please enter either one number
171
+ interface .show_script_error ('''Nothing was given to search for. Please enter either one number
174
172
(to search +/- 5 %) or two numbers separated by a "-" in one of the available boxes''' )
175
173
return
176
174
@@ -251,7 +249,7 @@ def run_search(interface=None):
251
249
data = f"""
252
250
Query: { query_report } <br>
253
251
Result:{ len (refcode_list )} hits in { len (set (refcode_list ))} structures <br>
254
- More information on the pore calculations is available here:
252
+ More information on the pore calculations is available here:
255
253
<a href="https://downloads.ccdc.cam.ac.uk/documentation/API/descriptive_docs/calculated_properties.html">
256
254
link
257
255
</a>
You can’t perform that action at this time.
0 commit comments