diff --git a/django_orphaned/management/commands/deleteorphaned.py b/django_orphaned/management/commands/deleteorphaned.py index 1205a64..113bc17 100644 --- a/django_orphaned/management/commands/deleteorphaned.py +++ b/django_orphaned/management/commands/deleteorphaned.py @@ -62,7 +62,7 @@ def should_skip(dir): if len(files) > 0: for basename in files: if basename not in exclude: - all_files.append(os.path.join(root, basename)) + all_files.append(os.path.join(root.decode('utf-8'), basename.decode('utf-8'))) elif not os.path.samefile(root, app_root): possible_empty_dirs.append(root)