You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When call Subscription.save() method exception raises:
AttributeError Traceback (most recent call last)
in
----> 1 transfer(user, recipient_user)
in transfer(moira_old_user, moira_new_user)
8
9 for sub in subscriptions:
---> 10 moira_new_user.subscription.create(sub.tags, [old_to_new_contacts[c] for c in sub.contacts], sub.enabled, sub.throttling, sub.sched, sub.ignore_warnings, sub.ignore_recoverings, sub.plotting).save()
11
12 for sub in subscriptions:
~/Library/Python/3.7/lib/python/site-packages/moira_client/models/subscription.py in save(self)
164 if self._id:
165 return self.update()
--> 166 self._send_request()
167
168 def update(self):
~/Library/Python/3.7/lib/python/site-packages/moira_client/models/subscription.py in _send_request(self, subscription_id)
79 for day in DAYS_OF_WEEK:
80 day_info = {
---> 81 'enabled': True if day not in self.disabled_days else False,
82 'name': day
83 }
AttributeError: 'Subscription' object has no attribute 'disabled_days'
The text was updated successfully, but these errors were encountered:
On saving subscription with days attribute in sched set to None
attribute error raised. Move disabled_days to be defined with any value
of days in sched.
Closes#13
System info
Python version:
Summary:
When call Subscription.save() method exception raises:
The text was updated successfully, but these errors were encountered: