Skip to content

Commit

Permalink
small fix in findsource to avoid error if .reg file is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsanchez committed Feb 17, 2014
1 parent 750c10f commit fee4ae6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions enrico/findsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ def FindSrc(infile):
FitRunner._log('gtfindsrc', 'Optimize source position')
os.system("rm "+utils._dump_findsrcout(config))
Obs.FindSource()
update_reg(config)

try:
update_reg(config)
except:
pass

if __name__ == '__main__':
import sys
Expand Down

0 comments on commit fee4ae6

Please sign in to comment.