Skip to content
Snippets Groups Projects
Commit 57de412f authored by Nick Bearson's avatar Nick Bearson
Browse files

add a simple try/catch for each minute so that a single minute's failure...

add a simple try/catch for each minute so that a single minute's failure doesn't impact other minutes
parent 306ae4e4
No related branches found
No related tags found
1 merge request!28replace exits with raises in grid_setup, and remove the realtime check
...@@ -45,6 +45,7 @@ import atexit ...@@ -45,6 +45,7 @@ import atexit
from glob import glob from glob import glob
import socket import socket
import signal import signal
import traceback
from netCDF4 import Dataset from netCDF4 import Dataset
#from multiprocessing import freeze_support # https://docs.python.org/2/library/multiprocessing.html#multiprocessing.freeze_support #from multiprocessing import freeze_support # https://docs.python.org/2/library/multiprocessing.html#multiprocessing.freeze_support
from functools import partial from functools import partial
...@@ -454,4 +455,10 @@ if __name__ == '__main__': ...@@ -454,4 +455,10 @@ if __name__ == '__main__':
minutes.append(m) minutes.append(m)
for m in minutes: for m in minutes:
grid_minute(m, args) try:
grid_minute(m, args)
except Exception as e:
log.error(e)
log.debug(traceback.format_exc())
log.error(f"Gridding minute {m} failed.")
continue
\ No newline at end of file
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