From 1568b318469492303158773b6ea85f5e9e390fae Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 19 Apr 2011 21:02:26 -0400 Subject: [PATCH] KeyError -> IndexError (please shoot me now) --- irc/commands/afc_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/commands/afc_status.py b/irc/commands/afc_status.py index 81a621e..6996758 100644 --- a/irc/commands/afc_status.py +++ b/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)