Skip to content

Error when DIRS does not exist #25

@TimVanMourik

Description

@TimVanMourik

Hi there!
I was using your very useful package, but encountered an error. When the setting TEMPLATES = [ ... ] does not contain DIRS, the following error is thrown:

 File "/usr/local/lib/python3.6/site-packages/livereload/management/commands/livereload.py", line 47, in handle watch_dirs.extend(template['DIRS']) KeyError: 'DIRS 

It can be circumvented from my side by making an empty 'DIRS': '' variable in my settings, but it would be nicer if it were fixed in:

django-livereload-server/livereload/management/commands/livereload.py, line 47

Thanks! Keep up the good work :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions