Skip to content

Commit 4687f75

Browse files
committed
Use an empty string as default connection_string
Otherwise, it defaults to None, which is not handled by psycopg 3+ (in contrast with psycopg2).
1 parent f5401a7 commit 4687f75

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change log
22

3+
## pg\_activity 3.1.1 - 2023-03-06
4+
5+
### Fixed
6+
7+
* Fix crash on startup with no "connection string" argument and the psycopg
8+
backend #346.
9+
310
## pg\_activity 3.1.0 - 2023-03-01
411

512
### Added

pgactivity/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def get_parser() -> ArgumentParser:
185185
"'host=HOSTNAME port=PORT user=USER dbname=DBNAME'."
186186
),
187187
nargs="?",
188+
default="",
188189
metavar="connection string",
189190
)
190191
# -h / --host

0 commit comments

Comments
 (0)