Skip to content

Commit

Permalink
Don't need a separate message variable
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Jan 30, 2023
1 parent 6c8c3e1 commit f8468dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dj_database_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ def config(
s = os.environ.get(env, default)

if s is None:
message = "No %s environment variable set, and so no databases setup" % env
logging.warning(message)
logging.warning(
"No %s environment variable set, and so no databases setup" % env
)

if s:
return parse(
Expand Down

0 comments on commit f8468dc

Please sign in to comment.