In https://github.com/benfred/py-spy/issues/503, there
are reports that py-spy panics - with the stack trace indicating
that its trying to load up a process with no virtual memory maps.
Fix by handling the case where maps are empty, to return an Err rather
than panicking
In https://github.com/benfred/py-spy/issues/503, there are reports that py-spy panics - with the stack trace indicating that its trying to load up a process with no virtual memory maps.
Fix by handling the case where maps are empty, to return an Err rather than panicking