浏览代码

KeyError -> IndexError (please shoot me now)

tags/v0.1
Ben Kurtovic 13 年前
父节点
当前提交
1568b31846
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      irc/commands/afc_status.py

+ 1
- 1
irc/commands/afc_status.py 查看文件

@@ -47,7 +47,7 @@ class AFCStatus(BaseCommand):
elif data.args[0].startswith("agg") or data.args[0] == "a":
try:
agg_num = data.args[1]
except KeyError:
except IndexError:
agg_data = (self.count_submissions(), self.count_redirects(), self.count_files())
agg_num = self.get_aggregate_number(agg_data)
aggregate = self.get_aggregate(agg_num)


正在加载...
取消
保存