From fee4ae694d47ed4c731d91f986e78a98677b0d90 Mon Sep 17 00:00:00 2001 From: davidsanchez Date: Mon, 17 Feb 2014 15:57:44 +0100 Subject: [PATCH] small fix in findsource to avoid error if .reg file is not found --- enrico/findsource.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/enrico/findsource.py b/enrico/findsource.py index 2619c12..260fbd6 100755 --- a/enrico/findsource.py +++ b/enrico/findsource.py @@ -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