1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.core.management.base import BaseCommand
9 from django.conf import settings
12 class Command(BaseCommand):
13 help = 'Check snippets.'
16 def handle(self, *args, **opts):
17 sfn = glob(settings.SEARCH_INDEX+'snippets/*')
20 bkid = path.basename(fn)
25 except UnicodeDecodeError:
26 print "error in snippets %s" % bkid