def append_payload(self, payload):
        '''Add a Payload to this Profile

        A Profile uses the PayloadContent key to place the aggregated Payloads
        into. Thus a Profile cannot separately set a PayloadContent key. An
        exception will be raised if this has been done.'''

        if 'PayloadContent' in self.payload.keys():
            raise Exception('PayloadContent already exists on Profile payload')

        self.payloads.append(payload)
dataset/ETHPy150Open jessepeterson/commandment/commandment/profiles/__init__.py/Profile.append_payload/original