Skip to content

Commit 525f2ca

Browse files
committed
fix: remove exception for python 3.7 users
1 parent dfe375d commit 525f2ca

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

python/mocpy/abstract_moc.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -547,14 +547,8 @@ def from_fits(cls, path_or_url, timeout=1000):
547547
if isinstance(path_or_url, BytesIO):
548548
return cls._from_fits_raw_bytes(path_or_url.read())
549549

550-
# this try except clause is there to support
551-
# Windows users with python 3.7 and should be dropped
552-
# when we remove support of python 3.7
553-
try:
554-
if Path(path_or_url).is_file():
555-
return cls.load(path_or_url, format="fits")
556-
except OSError:
557-
pass
550+
if Path(path_or_url).is_file():
551+
return cls.load(path_or_url, format="fits")
558552

559553
try:
560554
import requests

0 commit comments

Comments
 (0)