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