Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 92a97eb

Browse files
committedAug 29, 2022
downgrade severity of the exception raised when there is no evt2 file.
1 parent 1697e84 commit 92a97eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎astromon/observation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def filter_events(self, radius=180, psfratio=1): # radius in arcsec
531531
try:
532532
evt = list((self.workdir / 'primary').glob('*evt2.fits*'))[0]
533533
except Exception:
534-
raise Exception(f'evt2 file not found ') from None
534+
raise SkippedWithWarning(f'evt2 file not found') from None
535535

536536
evt2 = str(evt).replace('evt2', 'evt2_filtered')
537537

0 commit comments

Comments
 (0)
Please sign in to comment.