Skip to content

Commit dd4725f

Browse files
authored
Return the notebook when no conversion is needed (#221)
The bare return statement returns None by default. If nothing is to be upgraded, the original notebook should be returned.
1 parent 373d926 commit dd4725f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbformat/v4/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def upgrade(nb, from_version=None, from_minor=None):
7070
return nb
7171
elif from_version == 4:
7272
if from_minor == nbformat_minor:
73-
return
73+
return nb
7474

7575
# other versions migration code e.g.
7676
# if from_minor < 3:

0 commit comments

Comments
 (0)