Pass a message to the exception

otherwise nothing gets printed when printing the exception
This commit is contained in:
Sylvain Bellemare 2017-02-22 20:22:12 +01:00 committed by Sylvain Bellemare
parent 6ce8ba9ae3
commit c1cf79d0e0

View File

@ -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)