choderalab / TargetExplorer

Database framework with RESTful API for aggregating genomic, structural, and functional data for target protein families.
GNU General Public License v2.0
6 stars 7 forks source link

Start of code review #9

Open akaptur opened 10 years ago

akaptur commented 10 years ago

Use custom exceptions for control flow You probably don't want to use assertion errors for this kind of control flow because assertions get optimized away if you run your program with the -O flag. Instead, define a custom exception that inherits from Exception and raise it.