Mercurial > libervia-desktop-kivy
diff cagou/plugins/plugin_wid_file_sharing.py @ 383:a90f26e89a4a
share widget: fixed crash when a text content is shared without `text` in data:
sometimes, text content is shared via a path and not directly the `text` key. This is the
case with vCards. This patch fixes share widget to handle this case.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 04 Feb 2020 20:47:17 +0100 |
parents | 1da3c379205b |
children | d61bbbac4160 |
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_file_sharing.py Tue Feb 04 20:47:17 2020 +0100 +++ b/cagou/plugins/plugin_wid_file_sharing.py Tue Feb 04 20:47:17 2020 +0100 @@ -17,9 +17,11 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. +from functools import partial +import os.path +import json from sat.core import log as logging from sat.core import exceptions -log = logging.getLogger(__name__) from sat.core.i18n import _ from sat.tools.common import files_utils from sat_frontends.quick_frontend import quick_widgets @@ -35,9 +37,8 @@ from kivy.uix.label import Label from kivy.uix.button import Button from kivy import utils as kivy_utils -from functools import partial -import os.path -import json + +log = logging.getLogger(__name__) PLUGIN_INFO = {