this will explode on dev or any place where an app has zero or multiple accounts. I think you can probably catch ValueError here, log, ignore, and continue the loop.