Show More
@@ -99,7 +99,10 b' def list_profiles_in(path):' | |||||
99 | files = os.listdir(path) |
|
99 | files = os.listdir(path) | |
100 | profiles = [] |
|
100 | profiles = [] | |
101 | for f in files: |
|
101 | for f in files: | |
102 | full_path = os.path.join(path, f) |
|
102 | try: | |
|
103 | full_path = os.path.join(path, f) | |||
|
104 | except UnicodeError: | |||
|
105 | continue | |||
103 | if os.path.isdir(full_path) and f.startswith('profile_'): |
|
106 | if os.path.isdir(full_path) and f.startswith('profile_'): | |
104 | profiles.append(f.split('_',1)[-1]) |
|
107 | profiles.append(f.split('_',1)[-1]) | |
105 | return profiles |
|
108 | return profiles |
General Comments 0
You need to be logged in to leave comments.
Login now