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 b3a7578 commit afe3e3aCopy full SHA for afe3e3a
astroquery/eso/core.py
@@ -91,19 +91,11 @@ def __init__(self):
91
self._collections: Optional[List[str]] = None
92
self._auth_info: Optional[AuthInfo] = None
93
self._hash = None
94
- self.USE_DEV_TAP = True
95
96
def tap_url(self) -> str:
97
- url = conf.tap_url
98
- if self.USE_DEV_TAP:
99
- try:
100
- url = os.environ['TAP_URL']
101
- except KeyError as e:
102
- raise KeyError(
103
- "Running on dev mode, but TAP_URL environment variable is not set"
104
- ) from e
105
- logmsg = f"Using dev tap url: {url}"
106
- log.info(logmsg)
+ url = os.environ.get('ESO_TAP_URL', conf.tap_url)
+ logmsg = f"Using tap_url = {url}"
+ log.info(logmsg)
107
return url
108
109
def _authenticate(self, *, username: str, password: str) -> bool:
0 commit comments