From b4bca5bb98de1f3ba01c08be768f94f3ddcd3bbd Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 7 Nov 2016 10:03:56 +1000 Subject: [PATCH] [processing] Don't try to force load files which don't exist --- python/plugins/processing/tools/dataobjects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugins/processing/tools/dataobjects.py b/python/plugins/processing/tools/dataobjects.py index 6ad0318edd8..61f0f84212b 100644 --- a/python/plugins/processing/tools/dataobjects.py +++ b/python/plugins/processing/tools/dataobjects.py @@ -267,7 +267,7 @@ def getObjectFromUri(uri, forceLoad=True): for table in tables: if normalizeLayerSource(table.source()) == normalizeLayerSource(uri): return table - if forceLoad: + if forceLoad and os.path.exists(uri): settings = QSettings() prjSetting = settings.value('/Projections/defaultBehaviour') settings.setValue('/Projections/defaultBehaviour', '')