We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8add26 commit 7d16557Copy full SHA for 7d16557
pyclowder/connectors.py
@@ -519,8 +519,12 @@ def register_extractor(self, endpoints):
519
520
for url in endpoints.split(','):
521
if "unique_key" in data:
522
- if url.find("?") > -1: url += "&user=%s" % self.clowder_email
523
- else: url += "?user=%s" % self.clowder_email # TODO: This will not work, need an auth key matching email
+ if url.find("?") > -1:
+ url += "&user=%s" % self.clowder_email
524
+ else:
525
+ logger.info("Unable to register extractor without an API key.")
526
+ return
527
+ #url += "?user=%s" % self.clowder_email # TODO: This will not work, need an auth key matching email
528
try:
529
result = requests.post(url.strip(), headers=headers,
530
data=json.dumps(data),
0 commit comments