Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lust/tail.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ def file_rotated(file_name, orig_stat):
try:
new_stat = os.stat(file_name)

if orig_stat == None:
return True, new_stat
elif orig_stat.st_ino != new_stat.st_ino:
if orig_stat == None or orig_stat.st_ino != new_stat.st_ino:
return True, new_stat
else:
return False, orig_stat
Expand Down