Skip to content

Commit a3b86e8

Browse files
committed
fix _guess_host in windows
1 parent 6606873 commit a3b86e8

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
@@ -770,7 +770,11 @@ def _guess_host(self, host):
770770
'host has to be one of heasarc, sciserver, aws or None')
771771

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

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)