Remove pprint (does not seem to help)

This commit is contained in:
PCoder 2019-11-04 12:19:25 +05:30
parent 7aec4dd938
commit 4174c6226f

View file

@ -1,7 +1,6 @@
import json import json
import logging import logging
import sys import sys
from pprint import pprint
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from membership.models import CustomUser from membership.models import CustomUser
@ -130,6 +129,6 @@ class Command(BaseCommand):
"Payment cards": cards, "Payment cards": cards,
"SSH Keys": keys "SSH Keys": keys
} }
pprint(json.dumps(output_dict)) print(json.dumps(output_dict, indent=4))
except Exception as e: except Exception as e:
print(" *** Error occurred. Details {}".format(str(e))) print(" *** Error occurred. Details {}".format(str(e)))