Skip to content

Commit e3a40a8

Browse files
committed
In cpp2py/magic.py protect check of verbosity argument
1 parent 3da4478 commit e3a40a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp2py/magic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def cpp2py(self, line, cell=None):
8787
if not k.startswith('_'):
8888
self.shell.push({k: v})
8989
imported.append(k)
90-
if args.verbosity > 0 and imported:
90+
if args.verbosity and args.verbosity > 0 and imported:
9191
print_out("Success", "The following objects are ready to use: %s" % ", ".join(imported))
9292

9393
__doc__ = __doc__.format(CPP2PY_DOC=' ' * 8 + Cpp2pyMagics.cpp2py.__doc__)

0 commit comments

Comments
 (0)