提交 616db3bf authored 作者: Frederic's avatar Frederic

Raise an error, otherwise, we will ignore it most of the time

上级 c8bbcf99
......@@ -74,6 +74,8 @@ def debugprint(obj, depth=-1, print_type=False,
to the Apply's identifier, to indicate which output a line corresponds to.
"""
if not isinstance(depth, int):
raise Exception("depth parameter must be an int")
if file == 'str':
_file = StringIO()
elif file is None:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论