Skip to content

Commit

Permalink
Use an empty string as default connection_string
Browse files Browse the repository at this point in the history
Otherwise, it defaults to None, which is not handled by psycopg 3+ (in
contrast with psycopg2).
  • Loading branch information
dlax committed Mar 6, 2023
1 parent f5401a7 commit 4687f75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change log

## pg\_activity 3.1.1 - 2023-03-06

### Fixed

* Fix crash on startup with no "connection string" argument and the psycopg
backend #346.

## pg\_activity 3.1.0 - 2023-03-01

### Added
Expand Down
1 change: 1 addition & 0 deletions pgactivity/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def get_parser() -> ArgumentParser:
"'host=HOSTNAME port=PORT user=USER dbname=DBNAME'."
),
nargs="?",
default="",
metavar="connection string",
)
# -h / --host
Expand Down

0 comments on commit 4687f75

Please sign in to comment.