Skip to content

Commit b4bca5b

Browse files
committedNov 7, 2016
[processing] Don't try to force load files which don't exist
1 parent 272cd38 commit b4bca5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/tools/dataobjects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def getObjectFromUri(uri, forceLoad=True):
267267
for table in tables:
268268
if normalizeLayerSource(table.source()) == normalizeLayerSource(uri):
269269
return table
270-
if forceLoad:
270+
if forceLoad and os.path.exists(uri):
271271
settings = QSettings()
272272
prjSetting = settings.value('/Projections/defaultBehaviour')
273273
settings.setValue('/Projections/defaultBehaviour', '')

0 commit comments

Comments
 (0)
Please sign in to comment.