##// END OF EJS Templates
Merge pull request #5824 from takluyver/testcontroller-json-error...
Min RK -
r16688:d815eed1 merge
parent child Browse files
Show More
@@ -274,7 +274,13 class JSController(TestController):
274 if self.server.poll() is not None:
274 if self.server.poll() is not None:
275 return self._failed_to_start()
275 return self._failed_to_start()
276 if os.path.exists(self.server_info_file):
276 if os.path.exists(self.server_info_file):
277 try:
277 self._load_server_info()
278 self._load_server_info()
279 except ValueError:
280 # If the server is halfway through writing the file, we may
281 # get invalid JSON; it should be ready next iteration.
282 pass
283 else:
278 return
284 return
279 time.sleep(0.1)
285 time.sleep(0.1)
280 print("Notebook server-info file never arrived: %s" % self.server_info_file,
286 print("Notebook server-info file never arrived: %s" % self.server_info_file,
General Comments 0
You need to be logged in to leave comments. Login now