Skip to content

Commit 4594676

Browse files
kuriksfeifer
authored andcommitted
Graceful fail when pmdahdb fails to connect
Do not throw whole exception back-trace to user when connection from pmda-hdb to SAP-HANA instance fails.
1 parent 955c16c commit 4594676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pmdas/hdb/pmdahdb.python

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3529,7 +3529,7 @@ def _main():
35293529
conf.hdb_config.node_timeout,
35303530
conf.hdb_config.comm_timeout,
35313531
)
3532-
except RuntimeError as ex:
3532+
except (RuntimeError, dbapi.Error) as ex:
35333533
print(ex, file=sys.stderr)
35343534
sys.exit(1)
35353535
# Default domain number is PMDA(88)

0 commit comments

Comments
 (0)