Add this if statement above the call to ``pyqi_system_call``, so you can get it even if that call fails. Also, see above comment about adding error handling.