Skip to content

Commit

Permalink
Check for 'options' in update_repos command
Browse files Browse the repository at this point in the history
Fix bug introduced in #4345
  • Loading branch information
humitos committed Jul 16, 2018
1 parent dfdf4df commit 0c17b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readthedocs/core/management/commands/update_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from __future__ import absolute_import

import logging
from optparse import make_option

from django.core.management.base import BaseCommand

Expand Down Expand Up @@ -57,7 +56,8 @@ def handle(self, *args, **options):
record = options['record']
force = options['force']
version = options['version']
if args:

if options.get('slug', []):
for slug in options['slugs']:
if version and version != "all":
log.info("Updating version %s for %s", version, slug)
Expand Down

0 comments on commit 0c17b42

Please sign in to comment.