Skip to content

Commit

Permalink
[processing] Don't try to force load files which don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 7, 2016
1 parent 272cd38 commit b4bca5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/dataobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', '')
Expand Down

0 comments on commit b4bca5b

Please sign in to comment.