diff --git a/watpy/utils/coreh5.py b/watpy/utils/coreh5.py index 39673316a8faae78bcd744d9b337d7b593a4461d..fe39b2cef34d999499669e95da6c5d5854932d17 100644 --- a/watpy/utils/coreh5.py +++ b/watpy/utils/coreh5.py @@ -107,8 +107,13 @@ class CoRe_h5(object): # check this has some chances to be CoRe data if '.txt' != os.path.splitext(f)[-1]: continue - vlmr = wfile_parse_name(f, 'core') - if vlmr == None: continue + if f.endswith('metadata.txt'): continue + try: + vlmr = wfile_parse_name(f, 'core') + except Exception as ex: + print(str(ex), f", skipping {f}") + continue + var,l,m,r,c = vlmr if var == 'EJ':