Skip to content

Commit

Permalink
Merge pull request #38 from ghost/fix_no_option_error
Browse files Browse the repository at this point in the history
fix no option error #37
  • Loading branch information
tjwalch authored Dec 14, 2021
2 parents ea3edaa + 2fb824b commit bd1397e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions livereload/management/commands/livereload.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ def handle(self, *args, **options):
watch_dirs.extend([os.path.join(app_config.path, 'static')
for app_config in app_configs])

ignore_file_extensions = options.get('ignore_file_extensions', '').split(',')
for extension in ignore_file_extensions:
server.ignore_file_extension(extension.strip())
if options['ignore_file_extensions']:
ignore_file_extensions = options.get('ignore_file_extensions', '').split(',')
for extension in ignore_file_extensions:
server.ignore_file_extension(extension.strip())

for dir in filter(None, watch_dirs):
server.watch(dir)
Expand Down

0 comments on commit bd1397e

Please sign in to comment.