Browse Source

fix get_classifiers() caching

master
Niklas Rosenstein 6 months ago
parent
commit
a776faf201
Signed by: NiklasRosenstein <rosensteinniklas@gmail.com> GPG Key ID: 06D269B33D25F6C6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/shore/util/classifiers.py

+ 1
- 1
src/shore/util/classifiers.py View File

@@ -63,7 +63,7 @@ def get_classifiers() -> List[str]:
try:
os.makedirs(os.path.dirname(CACHE_FILENAME), exist_ok=True)
with open(CACHE_FILENAME, 'w') as fp:
fp.writelines(classifiers)
fp.writelines((x + '\n' for x in classifiers))
except:
logger.exception('Unable to write classifiers cache file.')



Loading…
Cancel
Save