change Exception to AttributeError
change Exception to AttributeError

when checking attribute value, seems more appropriate.

evandromr/stingray,StingraySoftware/stingray,pabell/stingray,abigailStev/stingray