Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main(config_filename):
- # Setup logging
- setup_logger()
- # Load configuration
- config_json = json.load(open(config_filename))
- # Convert!
- for _config in config_json:
- try:
- dealership = DealershipFeed(FeedConfiguration(_config))
- logging.info('Loaded: %s' % dealership.configuration)
- dealership.convert()
- except Exception as error:
- logging.error('Skipping feed: %s' % _config)
- logging.error(error)
- continue
Add Comment
Please, Sign In to add comment