pythonic way is to catch exception