From c1cf79d0e025cc6cae9029d9a0974915b858663a Mon Sep 17 00:00:00 2001 From: Sylvain Bellemare Date: Wed, 22 Feb 2017 20:22:12 +0100 Subject: [PATCH] Pass a message to the exception otherwise nothing gets printed when printing the exception --- bigchaindb/backend/rethinkdb/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigchaindb/backend/rethinkdb/admin.py b/bigchaindb/backend/rethinkdb/admin.py index 23b55048..863ffb31 100644 --- a/bigchaindb/backend/rethinkdb/admin.py +++ b/bigchaindb/backend/rethinkdb/admin.py @@ -96,7 +96,7 @@ def reconfigure(connection, *, table, shards, replicas, try: return connection.run(r.table(table).reconfigure(**params)) except (r.ReqlOpFailedError, r.ReqlQueryLogicError) as e: - raise OperationError from e + raise OperationError('Failed to reconfigure tables.') from e @register_admin(RethinkDBConnection)