Skip to content

Commit 92302a8

Browse files
Update src/maxplotlib/canvas/canvas.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 795bdaa commit 92302a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/maxplotlib/canvas/canvas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ def plot(self, backend="matplotlib", savefig=False, layers=None):
243243
return self.plot_matplotlib(savefig=savefig, layers=layers)
244244
elif backend == "plotly":
245245
return self.plot_plotly(savefig=savefig)
246-
else:
247-
raise ValueError("Invalid backend")
246+
+ else:
247+
+ raise ValueError(f"Invalid backend: {backend}")
248248

249249
def show(self, backend="matplotlib"):
250250
if backend == "matplotlib":

0 commit comments

Comments
 (0)