Skip to content

Commit

Permalink
guard against excludes being None
Browse files Browse the repository at this point in the history
  • Loading branch information
ianturton committed Jun 10, 2019
1 parent 748477b commit ac6e706
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 ac6e706

Please sign in to comment.