Skip to content
Snippets Groups Projects
Commit 5f322b26 authored by Destiny Kuehn's avatar Destiny Kuehn
Browse files

fix error type for var record length

parent f8f00ab9
No related branches found
No related tags found
1 merge request!21Fix for issue 11: Update support for mseeds with variable record
Pipeline #4187 passed with stage
in 5 minutes and 7 seconds
...@@ -980,7 +980,19 @@ class MainWindow(QWidget): ...@@ -980,7 +980,19 @@ class MainWindow(QWidget):
if not self.scan_type: if not self.scan_type:
filelist = [_file] filelist = [_file]
else: else:
(startepoch, endepoch) = msfile.FirstLastTime() try:
(startepoch, endepoch) = msfile.FirstLastTime()
except Exception as e:
err = ("ERROR: Cannot determine start and "
"end times.")
err1 = "\t File:" + fullname
self.write_error(err, "Read/Write", "red")
self.write_error(err1, "Read/Write")
self.add_to_dict(
self.error_dict, "Read/Write", directory, _file)
self.num_errors = self.num_errors + 1
continue
endepoch += 1 endepoch += 1
start = lstrftime('%Y:%j:%H:%M:%S', start = lstrftime('%Y:%j:%H:%M:%S',
lgmtime(startepoch)) lgmtime(startepoch))
......
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