Skip to content

Commit 7d5e80c

Browse files
committed
Don't error on latest time
1 parent dbdc50b commit 7d5e80c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caelus/post/funcobj/funcobj.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def times(self):
154154
@property
155155
def latest_time(self):
156156
"""Return the latest time available"""
157-
return self.times[0]
157+
return self.times[0] if self.times else ""
158158

159159
def __repr__(self):
160160
return f"<{self.__class__.__name__}: {self.name}>"

0 commit comments

Comments
 (0)