Skip to content

Commit

Permalink
Merge pull request #86 from ianturton/master
Browse files Browse the repository at this point in the history
Add a guard against excludes being None in proxy.py
  • Loading branch information
Hugo Mercier authored Jun 11, 2019
2 parents 748477b + ac6e706 commit 2e1efaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gml_application_schema_toolbox/core/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __enter__(self):
user = settings.value("proxy/proxyUser", "")
password = settings.value("proxy/proxyPassword", "")
excludes = settings.value("proxy/proxyExcludedUrls", "")
if hasattr(excludes, 'isNull') and excludes.isNull():
if not excludes or (hasattr(excludes, 'isNull') and excludes.isNull()):
excludes = []
else:
excludes = excludes.split("|")
Expand Down

0 comments on commit 2e1efaa

Please sign in to comment.