retreving userinfo data fix
This commit is contained in:
parent
136a01911b
commit
781a96a5e1
|
@ -61,7 +61,7 @@ class Command(BaseCommand):
|
|||
logger.debug('requesting: %s' % url)
|
||||
response = requests.get(url)
|
||||
try:
|
||||
data = response.json().get['data']
|
||||
data = response.json()['data']
|
||||
except (KeyError, ValueError):
|
||||
continue
|
||||
attachment = os.path.join(settings.INVOICES_DIR, 'facture_%s.pdf' % invoice.id)
|
||||
|
|
Reference in New Issue