diff --git a/app/cli.py b/app/cli.py index 2d1ca73f..257d4724 100644 --- a/app/cli.py +++ b/app/cli.py @@ -88,7 +88,7 @@ def register(app): # Load initial domain block list block_list = retrieve_block_list() if block_list: - for domain in block_list.split(): + for domain in block_list.split('\n'): db.session.add(Domain(name=domain.strip(), banned=True)) # Initial roles