Skip to content

Commit 0c17b42

Browse files
committed
Check for 'options' in update_repos command
Fix bug introduced in #4345
1 parent dfdf4df commit 0c17b42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/core/management/commands/update_repos.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from __future__ import absolute_import
99

1010
import logging
11-
from optparse import make_option
1211

1312
from django.core.management.base import BaseCommand
1413

@@ -57,7 +56,8 @@ def handle(self, *args, **options):
5756
record = options['record']
5857
force = options['force']
5958
version = options['version']
60-
if args:
59+
60+
if options.get('slug', []):
6161
for slug in options['slugs']:
6262
if version and version != "all":
6363
log.info("Updating version %s for %s", version, slug)

0 commit comments

Comments
 (0)