##// 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,8 +274,14 b' class JSController(TestController):'
274 274 if self.server.poll() is not None:
275 275 return self._failed_to_start()
276 276 if os.path.exists(self.server_info_file):
277 self._load_server_info()
278 return
277 try:
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:
284 return
279 285 time.sleep(0.1)
280 286 print("Notebook server-info file never arrived: %s" % self.server_info_file,
281 287 file=sys.stderr
General Comments 0
You need to be logged in to leave comments. Login now