Commit 9392cb5f by Xavier Antoviaque

hide-zone-labels: Fix broken test on determining id

parent dae8a8ee
...@@ -236,7 +236,7 @@ class DragAndDropBlock(XBlock): ...@@ -236,7 +236,7 @@ class DragAndDropBlock(XBlock):
unique_id = self.location.name unique_id = self.location.name
except AttributeError: except AttributeError:
# workaround for xblock workbench # workaround for xblock workbench
unique_id = self.parent.replace('.', '-') unique_id = self.parent and self.parent.replace('.', '-')
return unique_id return unique_id
@staticmethod @staticmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment