Browse Source

KeyError -> IndexError (please shoot me now)

tags/v0.1
Ben Kurtovic 13 years ago
parent
commit
1568b31846
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      irc/commands/afc_status.py

+ 1
- 1
irc/commands/afc_status.py View File

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


Loading…
Cancel
Save