Skip to content

Commit

Permalink
もしスレが1つもなかったらエラーになると思うので条件を入れる。
Browse files Browse the repository at this point in the history
  • Loading branch information
plonk committed Apr 21, 2021
1 parent 45a3928 commit ff28929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/cgi-bin/bbs_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def threads(self):
m = p.match(line)
self.resmax = max(self.resmax, int(m.group(3)))
lines[i] = Thread(self, m.group(1), html.unescape(m.group(2)), m.group(3))
if self.shitaraba:
if self.shitaraba and len(lines) > 1:
lines.pop(len(lines) - 1)
return lines

Expand Down

0 comments on commit ff28929

Please sign in to comment.