# HG changeset patch # User Brian Neal # Date 1297137190 0 # Node ID 66cc2f8c4603b5387d6566450d9f5257de14231d # Parent c5055573e8d717ea7bf110ca3c744c31b4344cb7 Removed a raise of CommandError, which was left over from when this code started life as a Django management command. diff -r c5055573e8d7 -r 66cc2f8c4603 tools/translate_yahoo_group.py --- a/tools/translate_yahoo_group.py Tue Feb 08 03:42:04 2011 +0000 +++ b/tools/translate_yahoo_group.py Tue Feb 08 03:53:10 2011 +0000 @@ -103,8 +103,7 @@ datetime object. """ m = DATE_RE.match(s) - if m is None: - raise CommandError("Invalid date string: %s" % s) + assert m is not None parts = [int(part) for part in m.groups()] return datetime.datetime(year=parts[0], month=parts[1], day=parts[2],