Skip to content

Commit

Permalink
adjusting if statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
ERYoung11 committed Feb 5, 2024
1 parent 487c0f8 commit d082442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgcli/pgexecute.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ def execute_normal_sql(self, split_sql):
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)
Expand Down

0 comments on commit d082442

Please sign in to comment.