Fix error during report generation
[wolnelektury.git] / apps / wolnelektury_core / management / commands / translation2po.py
index 02a1d08..6220006 100644 (file)
@@ -3,7 +3,6 @@
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 import os
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 import os
-import sys
 import time
 from optparse import make_option
 from django.conf import settings
 import time
 from optparse import make_option
 from django.conf import settings
@@ -90,7 +89,7 @@ class Command(BaseCommand):
 
             for lng in zip(*languages)[0]:
                 pofile = os.path.join(options['directory'], lng, options['poname'] + '.po')
 
             for lng in zip(*languages)[0]:
                 pofile = os.path.join(options['directory'], lng, options['poname'] + '.po')
-                if not os.path.exists(pofile): 
+                if not os.path.exists(pofile):
                     if options['keep_running']:
                         continue
                     else:
                     if options['keep_running']:
                         continue
                     else: