fixes #2170


Changed format of .debugs, .warnings , .error and raise statements from :
if self._activity_cache is not None:
raise ValueError('Activity %s is already tracked',
activity.get_id())

To:

if self._activity_cache is not None:
raise ValueError('Activity %s is already tracked' % \
activity.get_id())