diff --git a/jsonresume_reader.py b/jsonresume_reader.py index c6e6ffd..c520cb8 100644 --- a/jsonresume_reader.py +++ b/jsonresume_reader.py @@ -25,11 +25,8 @@ class JSONResumeReader(readers.RstReader): content, metadata = super().read(filename) if not('jsonresume' in metadata and os.path.isfile(metadata['jsonresume'])): raise Exception('please give a jsonresume metadata field for this type') - if not(f'jsonresume_{self._language_code}' in metadata and os.path.isfile(metadata[f'jsonresume_{self._language_code}'])): - raise Exception('please give a jsonresume_languagecode metadata field for this type') metadata['resume'] = json.load(open(metadata['jsonresume'])) - metadata['language'] = json.load(open(metadata[f'jsonresume_{self._language_code}'])) metadata['locale'] = self.settings.get('LOCALE', [self.settings.get('DEFAULT_LOCALE', None)]) countryname = lambda code: 'langue'