Skip to content

Commit 8be084d

Browse files
committed
fix _guess_host in windows
1 parent 27d0277 commit 8be084d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

astroquery/heasarc/core.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,11 @@ def _guess_host(self, host):
771771
'host has to be one of heasarc, sciserver, aws or None')
772772

773773
# host is None, so we guess
774-
if os.environ['HOME'] == '/home/idies' and os.path.exists('/FTP/'):
774+
if (
775+
'HOME' in os.environ
776+
and os.environ['HOME'] == '/home/idies'
777+
and os.path.exists('/FTP/')
778+
):
775779
# we are on idies, so we can use sciserver
776780
return 'sciserver'
777781

docs/heasarc/heasarc.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ catalog for all observations with exposure time greater than 190 ks.
198198
name obsid ra dec exposure
199199
deg deg s
200200
--------------- ----- --------- --------- --------
201-
Sgr A* 13842 266.41667 -29.00781 191760
201+
GW Transient 29852 -- -- 300000
202+
Sgr A* 13842 266.41667 -29.00781 191760
202203
IGR J17480-2446 30481 267.02013 -24.78024 200000
203-
IGR J17480-2446 31425 267.02013 -24.78024 200000
204204

205205
Another example may be to search the ``xmmmaster`` for a observation in some time range:
206206

0 commit comments

Comments
 (0)