We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 542c034 commit b9ace2fCopy full SHA for b9ace2f
lib/pythonx.ex
@@ -412,4 +412,11 @@ defmodule Pythonx do
412
term
413
end
414
415
+
416
+ def decode(nil) do
417
+ raise ArgumentError,
418
+ "Pythonx.decode/1 expects a %Pythonx.Object{}, but got nil. " <>
419
+ "Note that Pythonx.eval/2 or the ~PY sigil result in nil, if the " <>
420
+ "evaluated code ends with a statement, rather than expression"
421
+ end
422
0 commit comments