Fixed showConfig

This commit is contained in:
Adolfo Gómez García 2022-09-19 14:04:53 +02:00
parent 9fba2b45ad
commit 9c6c4078b1
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -84,11 +84,8 @@ class Command(BaseCommand):
else:
v = value['value'].replace('\n', '\\n')
self.stdout.write(f'{section}.{key}="{v}"')
if options['csv']:
writer.writerow([])
elif options['yaml']:
self.stdout.write(yaml.safe_dump(writer, default_flow_style=False))
if options['yaml']:
self.stdout.write(yaml.safe_dump(writer, default_flow_style=False))
except Exception as e:
print('The command could not be processed: {}'.format(e))
logger.exception('Exception processing %s', args)