瀏覽代碼

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)


Loading…
取消
儲存