code: def display_exc(self):
          
          errmsg = self.get_error()
          if errmsg is not None:
              if self.path is not None:
                  errmsg_lines = ["in " + self.path + ":"]
                  for line in errmsg.splitlines():
                      if line:
                          line = " " * taberrfmt + line
                      errmsg_lines.append(line)
                  errmsg = "\n".join(errmsg_lines)
              printerr(errmsg)
docs: Properly prints an exception in the exception context.