use pathlib in more places, thereby fixing some bugs
This commit is contained in:
parent
f5c33724dc
commit
2ad9f4a099
14 changed files with 24 additions and 36 deletions
|
@ -33,7 +33,7 @@ class Command(BaseCommand):
|
|||
for filename in os.listdir(settings.CACHE_ROOT):
|
||||
if filename.startswith('history_base_'):
|
||||
logger.info('Deleting %s...' % filename)
|
||||
os.remove(os.path.join(settings.CACHE_ROOT, filename))
|
||||
os.remove(settings.CACHE_ROOT / filename)
|
||||
logger.info('Base history deleted.')
|
||||
|
||||
if not settings.HAS_CELERY and not options['no_process']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue