MCPcopy
hub / github.com/scrapinghub/splash / can_raise_wrapper

Function can_raise_wrapper

splash/qtrender_lua.py:229–237  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

227 """
228 @functools.wraps(meth)
229 def can_raise_wrapper(self, *args, **kwargs):
230 try:
231 return meth(self, *args, **kwargs)
232 except BaseException as e:
233 if self.exceptions is None:
234 print("Ignoring exception:", e)
235 else:
236 self.exceptions.append(e)
237 raise
238
239 return can_raise_wrapper
240

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected