From 1ea3469d5b87bf5e57b1dff98662e411f58ddd39 Mon Sep 17 00:00:00 2001 From: tangchao <735056338@qq.com> Date: Wed, 25 May 2022 23:36:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=AE=97=E6=B3=95=E5=87=BA?= =?UTF-8?q?=E9=94=99=E6=97=B6=E7=A8=8B=E5=BA=8F=E5=B4=A9=E6=BA=83=20?= =?UTF-8?q?=E2=86=92=20=E8=BF=9B=E8=A1=8C=E9=94=99=E8=AF=AF=E6=8D=95?= =?UTF-8?q?=E8=8E=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sif_retrieval.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sif_retrieval.py b/sif_retrieval.py index a21956b..a1795b2 100644 --- a/sif_retrieval.py +++ b/sif_retrieval.py @@ -243,8 +243,15 @@ def main(): # print(header, flush=True) # sif算法处理 - processing(inputs.standard_sif, inputs.folder, inputs.outfile, - inputs.pars, data, header, inputs.sky_p, inputs.method) + try: + processing(inputs.standard_sif, inputs.folder, inputs.outfile, + inputs.pars, data, header, inputs.sky_p, inputs.method) + except Exception as e: + print('sif error: %s' % e, flush=True) + else: # 如果打开没有出错 + print('Sif compute Completed!') + finally: + pass if __name__ == '__main__':