Skip to content

Commit eb521bc

Browse files
committed
TST: re-try with asynchronous=True
1 parent 7783e4a commit eb521bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: glue_wwt/viewer/tools.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def activate(self):
8383
if not filename.endswith('.wtt'):
8484
filename = filename + '.wtt'
8585

86-
self.viewer._wwt.widget.page.runJavaScript("tourxml = '';")
87-
tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;')
86+
self.viewer._wwt.widget.page.runJavaScript("tourxml = '';", asynchronous=False)
87+
tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;', asynchronous=False)
8888

8989
self.viewer._wwt.widget.page.runJavaScript(SAVE_TOUR_CODE)
9090

@@ -93,7 +93,7 @@ def activate(self):
9393
while time.time() - start < 10:
9494
time.sleep(0.1)
9595
app.processEvents()
96-
tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;')
96+
tourxml = self.viewer._wwt.widget.page.runJavaScript('tourxml;', asynchronous=False)
9797
if tourxml:
9898
break
9999

0 commit comments

Comments
 (0)