Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Jan 24, 2024
1 parent 789f3d6 commit 526ec8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ansible-webui/aw/config/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from os import environ
from importlib.metadata import version, PackageNotFoundError
from sys import stderr
from warnings import warn

from pytz import all_timezones, timezone

Expand Down Expand Up @@ -35,7 +36,7 @@ def init_globals():
environ['PYTHONUNBUFFERED'] = '1'

if 'AW_SECRET' not in environ:
raise UserWarning(
warn(
"The environmental variable 'AW_SECRET' was not supplied! "
"Job-secrets like passwords might not be loadable after restart."
)
Expand Down

0 comments on commit 526ec8a

Please sign in to comment.