# of the process. try: validator.validate() except GroupedCase as e: logger.info(e.value + " File will be skipped.") continue except ValidatorError as e: logger.error(e.value + " File will be skipped.") continue # Get the title and other metadata get_metadata(metadict, file) # Skip if the file exists on Wikisource already try: line = api.get_case_line(metadict['title'], metadict['volume'], metadict['page']) except NoCaseInList as e: choice = input(e.value + ' Continue? (y/n)') if choice == 'y' or choice == "Y": logger.info(e.value + " Continuing.") else: logger.info(e.value + " Skipping.") continue except MultipleCases as e: choice = input(e.value + ' Continue? (y/n)') if choice == 'y' or choice == "Y": logger.info(e.value + " Continuing.") else: logger.info(e.value + " Skipping.") continue else: