bugfix: corrected for ValueError
This commit is contained in:
parent
a2add3034a
commit
2515715193
5
PyLoT.py
5
PyLoT.py
@ -1408,7 +1408,10 @@ class MainWindow(QMainWindow):
|
||||
eventBox.setView(tv)
|
||||
|
||||
def get_max_path_length(self):
|
||||
return max(len(event.path) for event in self.project.eventlist)
|
||||
if self.project.eventlist:
|
||||
return max(len(event.path) for event in self.project.eventlist)
|
||||
else:
|
||||
return None
|
||||
|
||||
def collect_event_data(self, event, plmax):
|
||||
data = {
|
||||
|
Loading…
Reference in New Issue
Block a user