Fixed invalid exception type in concurrence.py

Fixed a typo in concurrence.py