1
0
Fork 0

adjusting if statements.

This commit is contained in:
ERYoung11 2024-02-05 07:09:08 -06:00
parent 487c0f849d
commit d082442210
1 changed files with 2 additions and 2 deletions

View File

@ -438,9 +438,9 @@ class PGExecute:
def handle_notices(n):
nonlocal title
title = f"{title}"
if n.message_primary:
if n.message_primary is not None:
title = f"{title}\n{n.message_primary}"
if n.message_detail:
if n.message_detail is not None:
title = f"{title}\n{n.message_detail}"
self.conn.add_notice_handler(handle_notices)