File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 18
18
19
19
def Table_read (* args , ** kwargs ):
20
20
# why does if commons.ASTROPY_LT_5_0 not work on Windows?
21
- try :
22
- return Table .read (* args , ** kwargs , unit_parse_strict = 'silent' )
23
- except TypeError :
21
+ if commons .ASTROPY_LT_5_1 :
24
22
return Table .read (* args , ** kwargs )
23
+ else :
24
+ return Table .read (* args , ** kwargs , unit_parse_strict = 'silent' )
25
25
26
26
27
27
@async_to_sync
Original file line number Diff line number Diff line change @@ -53,11 +53,13 @@ def FK4CoordGenerator(*args, **kwargs):
53
53
'validate_email' ,
54
54
'ASTROPY_LT_4_1' ,
55
55
'ASTROPY_LT_4_3' ,
56
- 'ASTROPY_LT_5_0' ]
56
+ 'ASTROPY_LT_5_0' ,
57
+ 'ASTROPY_LT_5_1' ]
57
58
58
59
ASTROPY_LT_4_1 = not minversion ('astropy' , '4.1' )
59
60
ASTROPY_LT_4_3 = not minversion ('astropy' , '4.3' )
60
61
ASTROPY_LT_5_0 = not minversion ('astropy' , '5.0' )
62
+ ASTROPY_LT_5_1 = not minversion ('astropy' , '5.1' )
61
63
62
64
63
65
@deprecated ('0.4.4' , alternative = 'astroquery.query.BaseQuery._request' )
You can’t perform that action at this time.
0 commit comments