Skip to content

Commit

Permalink
fixed potential bug if self.attrs is None in webgl.show
Browse files Browse the repository at this point in the history
  • Loading branch information
marklescroart committed Sep 19, 2017
1 parent 7f770d6 commit 1ac7daf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cortex/webgl/serve.py
Expand Up @@ -351,6 +351,8 @@ def __getattr__(self, attr):
return self.attrs[attr][1]

def __setattr__(self, attr, value):
if hasattr(self, "attrs") and self.attrs is None:
return super(JSProxy, self).__setattr__(attr, value)
if not hasattr(self, "attrs") or attr not in self.attrs:
return super(JSProxy, self).__setattr__(attr, value)

Expand Down

0 comments on commit 1ac7daf

Please sign in to comment.