Notice print conditin fixed (#2633)

This commit is contained in:
Vince Jankovics
2022-02-20 23:22:02 +00:00
committed by GitHub
parent b64f5cfc8b
commit d7c39f8e28

View File

@@ -26,7 +26,7 @@ try:
# print version warning if necessary
notice = notices.notices.get(__version__)
if notice is not None:
if notice:
print(notice, file=sys.stderr)
except Exception: # nosec