Guest User

Untitled

a guest
May 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. def main(config_filename):
  2. # Setup logging
  3. setup_logger()
  4. # Load configuration
  5. config_json = json.load(open(config_filename))
  6. # Convert!
  7. for _config in config_json:
  8. try:
  9. dealership = DealershipFeed(FeedConfiguration(_config))
  10. logging.info('Loaded: %s' % dealership.configuration)
  11. dealership.convert()
  12. except Exception as error:
  13. logging.error('Skipping feed: %s' % _config)
  14. logging.error(error)
  15. continue
Add Comment
Please, Sign In to add comment