try: foo() except ValueError, e: e.args = ("%s at %s" % (e.args[0], self.location),) + e.args[1:] raise