Skip to content

Commit

Permalink
handles no env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
elegantmoose committed Feb 13, 2024
1 parent 80395d1 commit ab1f75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ascii_banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"


if int(os.environ['NO_COLOR']) == 1:
if int(os.environ.get('NO_COLOR', 0)) == 1:
ASCII_BANNER = _BANNER
else:
ASCII_BANNER = f"{DARK_BLUE}{_BANNER_SECTION_1}{DARK_PURPLE}{_BANNER_SECTION_2}{DARK_RED}{BANNER_SECTION_3}{END}"

0 comments on commit ab1f75a

Please sign in to comment.