I added a few extra exception handlers that wrap around calls to the Config service. If the region is an optional region, and the account hasn't opted into it, then this catches the exception and writes a failure note explaining why. There was also a missing continue near the if not config_result which explains why failed accounts caused problems and weren't handled gracefully the way they were meant to.
Strictly speaking, the unhandled exceptions are being thrown on line 121, but I catch them farther down because it lets me create a nice error message.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
I added a few extra exception handlers that wrap around calls to the Config service. If the region is an optional region, and the account hasn't opted into it, then this catches the exception and writes a failure note explaining why. There was also a missing
continue
near theif not config_result
which explains why failed accounts caused problems and weren't handled gracefully the way they were meant to.Strictly speaking, the unhandled exceptions are being thrown on line 121, but I catch them farther down because it lets me create a nice error message.