From b10b03e3ca7d1450390421272a3f2ff2fc71a88b Mon Sep 17 00:00:00 2001 From: Troy McConaghy Date: Sun, 22 Jan 2017 13:47:48 +0100 Subject: [PATCH] Changed 'len(validated_transactions) == 0' to 'not validated_transactions' as suggested by @amirelemam in #762 --- bigchaindb/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigchaindb/core.py b/bigchaindb/core.py index 3c62e65d..8ca25df8 100644 --- a/bigchaindb/core.py +++ b/bigchaindb/core.py @@ -455,7 +455,7 @@ class Bigchain(object): Block: created block. """ # Prevent the creation of empty blocks - if len(validated_transactions) == 0: + if not validated_transactions: raise exceptions.OperationError('Empty block creation is not ' 'allowed')