mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 00:38:07 +02:00
examples: avoid lgtm warning about calling traceback.format_exception()
lgtm.com says: Call to function format_exception with too few arguments; should be no fewer than 3.
This commit is contained in:
parent
fee0f7cad8
commit
9b80860ff4
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ def run1():
|
|||
log()
|
||||
log("EXCEPTION:")
|
||||
log(f"{e}")
|
||||
for tb in traceback.format_exception(e):
|
||||
for tb in traceback.format_exception(None, e, e.__traceback__):
|
||||
for l in tb.split("\n"):
|
||||
log(f">>> {l}")
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue