def _sync_story(self, story): try: story_dict = self.client.stories.find_by_id(story['id']) except NotFoundError as error: logger.info(error.response) return logger.debug(story_dict) remote_id = story_dict.pop('id') sync_story(remote_id, story_dict)
def _sync_story(self, story): story_id = story.get('gid') try: story_dict = self.client.stories.find_by_id(story_id) except NotFoundError as error: logger.info(error.response) return logger.debug(story_dict) remote_id = story_dict['gid'] sync_story(remote_id, story_dict)