From 21fb917fdda2337a7ddac4855a94a49e0179b583 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Mon, 13 Mar 2017 22:43:44 +0100 Subject: [PATCH] Ensure we can read the version of PostgreSQL 10 (#78) --- pg_view/models/db_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_view/models/db_client.py b/pg_view/models/db_client.py index 67ba03e..c795ef5 100644 --- a/pg_view/models/db_client.py +++ b/pg_view/models/db_client.py @@ -235,7 +235,7 @@ def get_postmasters_directories(): try: fp = open(PG_VERSION_FILENAME, 'rU') val = fp.read().strip() - if val is not None and len(val) >= 3: + if val is not None and len(val) >= 2: version = float(val) except os.error as e: logger.error(