Commit 0d2c6ec1 authored by Claude Paroz's avatar Claude Paroz

Warn if no modules match in update-stats

parent dccdcf42
......@@ -32,6 +32,8 @@ class Command(BaseCommand):
modules = Module.objects.filter(
Q(name=options['module']) | Q(vcs_root__endswith='/%s' % options['module'])
if not modules:
self.stderr.write("No modules match `%s`." % options['module'])
for i, module in enumerate(modules):
if module.archived and not self.force_stats:
self.stderr.write("The module '%s' is archived. Skipping..." %
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment