Skip to content

Commit

Permalink
Documentation update for PANDA commit 236c1a8ccf58c8af6473aeaf51b90c9…
Browse files Browse the repository at this point in the history
…0112af162 branch dev
  • Loading branch information
PANDA Bot committed Jun 13, 2024
1 parent ff69762 commit 619146b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4817,7 +4817,11 @@ <h2 id="returns">Returns</h2>
return_from_exception = 0

def _run_and_catch(*args, **kwargs): # Run function but if it raises an exception, stop panda and raise it
if not hasattr(self, &#34;exit_exception&#34;):
if hasattr(self, &#34;exit_exception&#34;):
# An exception has been raised previously - do not even run the function. But we need to match the expected
# return type or we&#39;ll raise more errors.
return self.ffi.cast(return_type, 0)
else:
try:
r = fun(*args, **kwargs)
#print(pandatype, type(r)) # XXX Can we use pandatype to determine requried return and assert if incorrect
Expand Down
12 changes: 10 additions & 2 deletions panda.html
Original file line number Diff line number Diff line change
Expand Up @@ -2879,7 +2879,11 @@ <h1 class="title">Module <code>pandare.panda</code></h1>
return_from_exception = 0

def _run_and_catch(*args, **kwargs): # Run function but if it raises an exception, stop panda and raise it
if not hasattr(self, &#34;exit_exception&#34;):
if hasattr(self, &#34;exit_exception&#34;):
# An exception has been raised previously - do not even run the function. But we need to match the expected
# return type or we&#39;ll raise more errors.
return self.ffi.cast(return_type, 0)
else:
try:
r = fun(*args, **kwargs)
#print(pandatype, type(r)) # XXX Can we use pandatype to determine requried return and assert if incorrect
Expand Down Expand Up @@ -6434,7 +6438,11 @@ <h2 id="returns">Returns</h2>
return_from_exception = 0

def _run_and_catch(*args, **kwargs): # Run function but if it raises an exception, stop panda and raise it
if not hasattr(self, &#34;exit_exception&#34;):
if hasattr(self, &#34;exit_exception&#34;):
# An exception has been raised previously - do not even run the function. But we need to match the expected
# return type or we&#39;ll raise more errors.
return self.ffi.cast(return_type, 0)
else:
try:
r = fun(*args, **kwargs)
#print(pandatype, type(r)) # XXX Can we use pandatype to determine requried return and assert if incorrect
Expand Down

0 comments on commit 619146b

Please sign in to comment.