After obtaining a campaign, if I change the status and try to save it, the library responds with an AttributeError exception. After throwing this exception, the campaign updates its status to the new one.
Details
OS: Mac OS Sierra 10.12.3
Python: 3.4.5
Package: TerminalOne==1.4.6
Traceback (most recent call last):
File "triggers/mediamath_integration.py", line 74, in _send_request
campaign.save()
File "/Users/carlos/.pyenv/versions/decidata/lib/python3.4/site-packages/terminalone/models/campaign.py", line 150, in save
super(Entity, self).__setattr__('_init_sce', self.spend_cap_enabled)
File "/Users/carlos/.pyenv/versions/decidata/lib/python3.4/site-packages/terminalone/entity.py", line 80, in __getattr__
raise AttributeError(attribute)
AttributeError: spend_cap_enabled
Description
After obtaining a campaign, if I change the status and try to save it, the library responds with an AttributeError exception. After throwing this exception, the campaign updates its status to the new one.
Details OS: Mac OS Sierra 10.12.3 Python: 3.4.5 Package: TerminalOne==1.4.6
Example:
Exception: