@@ -698,27 +698,26 @@ def _raise_exception(self, *args: Any, **kwargs: Any) -> Literal[True]:
698698 traceback .print_exception (* exc , file = logfile )
699699 message = (
700700 "An exception occurred:"
701- + "\n \n "
702- + "" .join (traceback .format_exception_only (exc [0 ], exc [1 ]))
703- + "\n "
704- + "The application should continue functioning, but you "
705- + "may notice inconsistent behavior in this session."
706- + "\n \n "
707- + "Please report this to us either in"
708- + "\n "
709- + "* the #zulip-terminal stream"
710- + "\n "
711- + " (https://chat.zulip.org/#narrow/stream/"
712- + "206-zulip-terminal in the webapp)"
713- + "\n "
714- + "* an issue at "
715- + "https://github.com/zulip/zulip-terminal/issues"
716- + "\n \n "
717- + "Details of the exception can be found in "
718- + exception_logfile
719- + "\n \n "
720- + f"Press [{ primary_display_key_for_command ('COPY_TRACEBACK' )} ]"
721- + " to copy traceback to clipboard."
701+ "\n \n "
702+ f"{ '' .join (traceback .format_exception_only (exc [0 ], exc [1 ]))} "
703+ "\n "
704+ "The application should continue functioning, but you "
705+ "may notice inconsistent behavior in this session."
706+ "\n \n "
707+ "Please report this to us either in"
708+ "\n "
709+ "* the #zulip-terminal stream"
710+ "\n "
711+ " (https://chat.zulip.org/#narrow/stream/"
712+ "206-zulip-terminal in the webapp)"
713+ "\n "
714+ "* an issue at "
715+ "https://github.com/zulip/zulip-terminal/issues"
716+ "\n \n "
717+ f"Details of the exception can be found in { exception_logfile } "
718+ "\n \n "
719+ f"Press [{ primary_display_key_for_command ('COPY_TRACEBACK' )} ]"
720+ " to copy traceback to clipboard."
722721 )
723722 full_traceback = "" .join (traceback .format_exception (* exc ))
724723 self .show_exception_popup (message , traceback = full_traceback , width = 80 )
0 commit comments