From 6f3057d6560f1b06365deedd6b7daa2fb5ecdaf6 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Thu, 28 May 2020 15:40:56 +0200 Subject: [PATCH] Fix exception on warning Fixes https://github.com/opengisch/qfieldsync/issues/149 --- qfieldsync/core/layer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qfieldsync/core/layer.py b/qfieldsync/core/layer.py index 1d2e4bbd..4b4e3cea 100644 --- a/qfieldsync/core/layer.py +++ b/qfieldsync/core/layer.py @@ -153,7 +153,7 @@ def is_supported(self): @property def warning(self): - if self.layer.source().endswith('jp2', 'jpx'): + if self.layer.source().endswith(('jp2', 'jpx')): return QCoreApplication.translate('DataSourceWarning', 'JPEG2000 layers are not supported by QField.
You can rasterize ' 'them as basemap.'