diff --git a/pwndbg/ida.py b/pwndbg/ida.py index fa718007f..90abf8a17 100644 --- a/pwndbg/ida.py +++ b/pwndbg/ida.py @@ -88,6 +88,8 @@ class withIDA(object): functools.update_wrapper(self, fn) def __call__(self, *args, **kwargs): + if not ida_enabled: + return None if _ida is None: init_ida_rpc_client() if _ida is not None: