SeattleTestbed / repy_v2

Seattle Testbed's Repy ("Restricted Python") sandbox, version 2
MIT License
12 stars 50 forks source link

raise must use unique strings #66

Open choksi81 opened 10 years ago

choksi81 commented 10 years ago

We often raise exceptions in our code and accompany them with an explanation in string form. Alas, the string isn't always unique, so it doesn't point to the place where the exception was raised, but multiple possible places.

We absolutely must raise unique strings, or they are not helpful for debugging! Let's grep -r raise | sort | uniq -d the sources and fix stuff up.