Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing site mapping for Meta #7

Open
purarue opened this issue Mar 24, 2022 · 1 comment
Open

Missing site mapping for Meta #7

purarue opened this issue Mar 24, 2022 · 1 comment

Comments

@purarue
Copy link

purarue commented Mar 24, 2022

$ python3 -m stexport.export --secrets "${XDG_CONFIG_HOME}/my/my/config/stexport_secret.py" --user-sites
[W 220324 10:07:42 export:126] Missing site mapping for Meta, didnt match all_sites format
[I 220324 10:07:42 export:242] exporting ['academia', 'apple', 'askubuntu', 'emacs', 'raspberrypi', 'security', 'stackapps', 'stackoverflow', 'superuser', 'unix', 'vi']

I think this is probably referencing https://meta.stackexchange.com/?

Not sure if this means its skipping a site or not

@karlicoss
Copy link
Owner

Hmm, not sure -- I don't have any meta posts so can't check. But yeah, it does look like it'd be skipped

# Notify of missing mappings
for k, v in user_sites_inv.items():
if v == None:
logger.warning(f'Missing site mapping for {k}, didnt match all_sites format')
# Flip for return to be like get_all_sites, filter out missings
return {v: k for k, v in user_sites_inv.items() if v is not None}

My hunch would be that this line is somehow to blame

associate_site_names: List[str] = [s['site_name'].replace(' Stack Exchange', '') for s in res['items']]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants