Skip to content

Commit 45c9fe6

Browse files
authored
Merge pull request #144 from pcuste1/patch-1
bugfix when ref is `None`
2 parents ff3ccf2 + bbd71c9 commit 45c9fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sidecar/sidecar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Sidecar(Output):
3333

3434
@observe('ref')
3535
def _validate_ref_anchor(self, *args):
36-
if self.ref.anchor == 'right':
36+
if self.ref and self.ref.anchor == 'right':
3737
warnings.warn(
3838
"`ref` cannot be set when `ref.anchor == 'right'`. "
3939
"Proceeding with `ref = None`.", UserWarning

0 commit comments

Comments
 (0)