Skip to content
Snippets Groups Projects
Commit d66cbc2f authored by Peters, Wouter's avatar Peters, Wouter
Browse files

put the extra line of history in a try-except, attribute might not exist

parent 0646a5b3
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,10 @@ def WriteMixingRatios(DaCycle):
ncf_out.Caution = '==================================================================================='
ncf_out.History += '\nOriginal observation file modified by user %s on %s\n' % (os.environ['USER'], datetime.today().strftime('%F'),)
try:
ncf_out.History += '\nOriginal observation file modified by user %s on %s\n' % (os.environ['USER'], datetime.today().strftime('%F'),)
except:
ncf_out.History = '\nOriginal observation file modified by user %s on %s\n' % (os.environ['USER'], datetime.today().strftime('%F'),)
ncf_out.CTDAS_info = 'Simulated values added from a CTDAS run by %s on %s\n' % (os.environ['USER'], datetime.today().strftime('%F'),)\
+ '\nCTDAS was run on platform %s' % (os.environ['HOST'],)\
+ '\nCTDAS job directory was %s' % (DaCycle['dir.da_run'],)\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment