##// END OF EJS Templates
Guard against self.state is None
y-p -
Show More
@@ -429,6 +429,9 b' class EmbeddedSphinxShell(object):'
429 ret.append('')
429 ret.append('')
430
430
431 # context information
431 # context information
432 filename = "Unknown"
433 lineno = 0
434 if self.state:
432 filename = self.state.document.current_source
435 filename = self.state.document.current_source
433 lineno = self.state.document.current_line
436 lineno = self.state.document.current_line
434
437
General Comments 0
You need to be logged in to leave comments. Login now