Suppress warnings when errors occur while running the `onegadget` command (#2683)

pull/2687/head
Alan Li 11 months ago committed by GitHub
parent 4148d1095e
commit 246e88bd13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -324,12 +324,6 @@ def parse_expression(expr: str) -> Tuple[int | None, str, str | None]:
return result, f"{cast}{lambda_expr.color_str}", None
except pwndbg.dbg_mod.Error as e:
error_message = (
f"Pwndbg encountered an issue while evaluating the expression: {cast}{lambda_expr.color_str}\n"
f"Error details: {str(e)}\n"
f"Consider creating an issue in the pwndbg repository."
)
print(M.warn(error_message))
return None, f"{cast}{lambda_expr.color_str}", str(e)

Loading…
Cancel
Save