Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

livereload server not start without "--ignore-file-extensions" option #37

Closed
ghost opened this issue Jan 26, 2019 · 0 comments · Fixed by #38
Closed

livereload server not start without "--ignore-file-extensions" option #37

ghost opened this issue Jan 26, 2019 · 0 comments · Fixed by #38

Comments

@ghost
Copy link

ghost commented Jan 26, 2019

Hi, thanks to good app.
I found a little bug as below. (with this master branch)

when you do this command, it's ok.
python manage.py livereload --ignore-file-extensions=.less,.scss

but do this, error occur.
python manage.py livereload

i think this is cause from this code in livereload.py.
options.get('ignore_file_extensions', '').split(',')

error message

Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 316, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 353, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.7/site-packages/livereload/management/commands/livereload.py", line 62, in handle
    ignore_file_extensions = options.get('ignore_file_extensions', '').split(',')
AttributeError: 'NoneType' object has no attribute 'split'
@ghost ghost mentioned this issue Jan 26, 2019
tjwalch added a commit that referenced this issue Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants