Mercurial > libervia-backend
comparison src/core/sat_main.py @ 2100:fbeeba721954
plugin android: first draft:
- the plugin cancel its own import if it's not launched on Android platform
- this plugin show a notification when a non MUC message is received when Cagou is not active
- the device also optionally vibrate on notification
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 19 Dec 2016 23:49:37 +0100 |
parents | 0931b5a6213c |
children | c96fe007ca41 |
comparison
equal
deleted
inserted
replaced
2099:ad88808591ef | 2100:fbeeba721954 |
---|---|
175 except KeyError: | 175 except KeyError: |
176 pass | 176 pass |
177 log.warning(u"Can't import plugin [{path}] because of an unavailale third party module:\n{msg}".format( | 177 log.warning(u"Can't import plugin [{path}] because of an unavailale third party module:\n{msg}".format( |
178 path=plugin_path, msg=e)) | 178 path=plugin_path, msg=e)) |
179 continue | 179 continue |
180 except exceptions.CancelError as e: | |
181 log.info(u"Plugin [{path}] cancelled its own import: {msg}".format(path=plugin_path, msg=e)) | |
182 continue | |
180 except Exception as e: | 183 except Exception as e: |
181 import traceback | 184 import traceback |
182 log.error(_(u"Can't import plugin [{path}]:\n{error}").format(path=plugin_path, error=traceback.format_exc())) | 185 log.error(_(u"Can't import plugin [{path}]:\n{error}").format(path=plugin_path, error=traceback.format_exc())) |
183 continue | 186 continue |
184 mod = sys.modules[plugin_path] | 187 mod = sys.modules[plugin_path] |