fix: retire_user mgmt cmd to handle string and bytes inputs
This commit is contained in:
@@ -68,6 +68,8 @@ class Command(BaseCommand):
|
||||
raise CommandError(error_message) # lint-amnesty, pylint: disable=raise-missing-from
|
||||
|
||||
for record in userinfo:
|
||||
if isinstance(record, bytes):
|
||||
record = record.decode('utf-8')
|
||||
userdata = record.split(',')
|
||||
username = userdata[0].strip()
|
||||
user_email = userdata[1].strip()
|
||||
|
||||
Reference in New Issue
Block a user