Coverage for seedboxsync/front/utils.py: 100%
5 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-07-26 17:46 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-07-26 17:46 +0000
1#
2# Copyright (C) 2015-2026 Guillaume Kulakowski <guillaume@kulakowski.fr>
3#
4# For the full copyright and license information, please view the LICENSE
5# file that was distributed with this source code.
6#
7"""SeedboxSync front utils module."""
9from flask import flash
10from seedboxsync.core import current_app
13def init_flash() -> None:
14 """Initialize flash messages."""
15 if current_app.config.get("INIT_ERROR"):
16 flash(current_app.config["INIT_ERROR"], "error")