Fixed invalid exception type in concurrence.py