Skip to content

Commit

Permalink
ingestDefects: remove bad raise
Browse files Browse the repository at this point in the history
raise(Exception) raises the class 'Exception', which can't
be the intention. If the intention was to allow the exception
to propagate, then removing the catch completely does that.
  • Loading branch information
PaulPrice committed Sep 26, 2019
1 parent c81602f commit 674772d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/lsst/pipe/tasks/ingestDefects.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,5 @@ def run(self, args):
args.mode = 'move'
args.validity = None # Validity range is determined from the files
IngestCalibsTask.run(self, args)
except Exception:
raise(Exception)
finally:
shutil.rmtree(temp_dir)

0 comments on commit 674772d

Please sign in to comment.