Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
safeguard request properties
  • Loading branch information
tomkralidis committed Sep 11, 2021
1 parent fe38e66 commit a60e3ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/MetaSearch/search_backend.py
Expand Up @@ -172,10 +172,11 @@ def __init__(self, url, timeout, auth):
self.conn.description = c['description']
except KeyError:
pass
self.request = self.conn.request
else:
self.conn = Records(self.url, timeout=self.timeout, auth=self.auth)
self.request = None

self.request = self.conn.request
self.response = self.conn.response

def query_records(self, bbox=[], keywords=None, limit=10, offset=1):
Expand Down

0 comments on commit a60e3ef

Please sign in to comment.