From ba5ec76317a3bd96895506159b0d5bc1a1a6eecc Mon Sep 17 00:00:00 2001 From: kos Date: Mon, 8 Oct 2012 17:12:58 +0900 Subject: [PATCH] [browser] add exception handling. --- lib/python/Plugins/Extensions/HbbTV/plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/python/Plugins/Extensions/HbbTV/plugin.py b/lib/python/Plugins/Extensions/HbbTV/plugin.py index d0ca15f..2d4c015 100644 --- a/lib/python/Plugins/Extensions/HbbTV/plugin.py +++ b/lib/python/Plugins/Extensions/HbbTV/plugin.py @@ -1759,6 +1759,11 @@ class OperaBrowser(Screen): url = '' self.session.open(OperaBrowserPreferenceWindow, url) def _cmd_on_OpenStartpage(self): + global _g_helper + if not _g_helper._is_browser_running(): + message = "Opera Browser was not running.\nPlease running browser using [File]>[Start/Stop] menu." + self.session.open(MessageBox, message, MessageBox.TYPE_INFO) + return start = 'http://vuplus.com' try: start = OperaBrowserSetting().getData()['start'] -- 2.7.4