Skip to content

Commit a17fdf6

Browse files
Jorge Fernandez HernandezJorge Fernandez Hernandez
authored andcommitted
GAIAMNGT-1700 the path will be empty if it represents a file
1 parent 58f8692 commit a17fdf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/gaia/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def load_data(self, ids, *, data_release=None, data_structure='INDIVIDUAL', retr
258258

259259
log.debug(f"Directory where the data will be saved: {path}")
260260

261-
if path != '':
261+
if path:
262262
if not os.path.isdir(path):
263263
try:
264264
os.mkdir(path)

0 commit comments

Comments
 (0)