def view_last_report(self):
        """Show report if there are report data, otherwise notify user."""

        ### if there are report data, show report

        if self.report_data is not None:

            ### set loop holder to None
            self.loop_holder = None

            ### set itself as the current loop holder by raising
            ### the corresponding exception
            raise SwitchLoopException(self)

        ### otherwise, notify user via dialog

        else:

            create_and_show_dialog(
                "Must first perform system tests in order to produce report."
                " Go to \"GUI automation > System testing\" to set and start"
                " a system testing session using one of the presented"
                " options."
            )
Show report if there are report data, otherwise notify user.
nodezator/systemtesting/reportviewer/op.py