I think because you used the word "Canonical" people are answering in terms of best pythonic programming. Like when you read your own code 6 months from now you get a sense of how smart the coder was.
Otherwise, in the moment long before worrying about swallowing exceptions just do:
type(anyVar)