From: yomguy Date: Tue, 5 Feb 2013 12:31:51 +0000 (+0100) Subject: fix hidden files X-Git-Tag: 1.1~637 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=81f7bb946fd8093f8694fd6b367481f641a21cb0;p=teleforma.git fix hidden files --- diff --git a/teleforma/management/commands/teleforma-import-conferences.py b/teleforma/management/commands/teleforma-import-conferences.py index 7e399a60..ef962599 100644 --- a/teleforma/management/commands/teleforma-import-conferences.py +++ b/teleforma/management/commands/teleforma-import-conferences.py @@ -71,7 +71,7 @@ class Command(BaseCommand): name = os.path.splitext(filename)[0] ext = os.path.splitext(filename)[1][1:] - if ext in self.original_format: + if ext and ext in self.original_format and name[0] != '.': root_list = root.split(os.sep) public_id = root_list[-1] course = root_list[-2]