Less indentation

main
Bob Mottram 2021-03-15 14:31:33 +00:00
parent c7eb730c06
commit 0a7f214163
1 changed files with 6 additions and 5 deletions

View File

@ -46,11 +46,12 @@ def _showDesktopBanner() -> None:
"""Shows the banner at the top
"""
bannerFilename = 'theme/starlight/banner.txt'
if os.path.isfile(bannerFilename):
with open(bannerFilename, 'r') as bannerFile:
banner = bannerFile.read()
if banner:
print(banner + '\n')
if not os.path.isfile(bannerFilename):
return
with open(bannerFilename, 'r') as bannerFile:
banner = bannerFile.read()
if banner:
print(banner + '\n')
def _waitForKeypress(timeout: int, debug: bool) -> str: