From d4edf33f09272250d84731d9e59e50eea7696241 Mon Sep 17 00:00:00 2001 From: Tomasz Gargas Date: Sun, 10 Dec 2017 00:24:09 +0100 Subject: [PATCH] Remove a check for READ_VERSION==0 in BlockStructureBlockData._add_transformer. Signed-off-by: Tomasz Gargas --- .../core/djangoapps/content/block_structure/block_structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/content/block_structure/block_structure.py b/openedx/core/djangoapps/content/block_structure/block_structure.py index ff14e62f4e..bd92216ac6 100644 --- a/openedx/core/djangoapps/content/block_structure/block_structure.py +++ b/openedx/core/djangoapps/content/block_structure/block_structure.py @@ -730,7 +730,7 @@ class BlockStructureBlockData(BlockStructure): Adds the given transformer to the block structure by recording its current version number. """ - if transformer.READ_VERSION == 0 or transformer.WRITE_VERSION == 0: + if transformer.WRITE_VERSION == 0: raise TransformerException('Version attributes are not set on transformer {0}.', transformer.name()) self.set_transformer_data(transformer, TRANSFORMER_VERSION_KEY, transformer.WRITE_VERSION)