bugfix: corrected for ValueError
This commit is contained in:
parent
29a1e4ebe6
commit
b15cfe2e1d
5
PyLoT.py
5
PyLoT.py
@ -1408,7 +1408,10 @@ class MainWindow(QMainWindow):
|
|||||||
eventBox.setView(tv)
|
eventBox.setView(tv)
|
||||||
|
|
||||||
def get_max_path_length(self):
|
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):
|
def collect_event_data(self, event, plmax):
|
||||||
data = {
|
data = {
|
||||||
|
Loading…
Reference in New Issue
Block a user