diff tools/translate_yahoo_group.py @ 320:66cc2f8c4603

Removed a raise of CommandError, which was left over from when this code started life as a Django management command.
author Brian Neal <bgneal@gmail.com>
date Tue, 08 Feb 2011 03:53:10 +0000
parents c5055573e8d7
children
line wrap: on
line diff
--- 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],