There is something in python called warnings, and guess what? The name is very intuitive, they warn about something, kind like an Exception, but they just warn you… There are some types of warnings, the example above could be rewritten as follows: This way, when this function is called (maybe there was a piece of the code that hadn’t got refactored and you missed it) you’ll get the warning in the
![Python: Use Warnings!](https://cdn-ak-scissors.b.st-hatena.com/image/square/ad476a324b903efee3a64e00cde72ffa9bc32e41/height=288;version=1;width=512/http%3A%2F%2Fwww.arruda.blog.br%2Fwp-content%2Fuploads%2F2013%2F10%2Fwarning-150x150.jpg)