From 781a96a5e135485d9fc56deaa3e1153cd23cd03b Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Wed, 15 Oct 2014 10:10:27 +0200 Subject: [PATCH] retreving userinfo data fix --- synchro_orleans/data/management/commands/email_new_invoices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synchro_orleans/data/management/commands/email_new_invoices.py b/synchro_orleans/data/management/commands/email_new_invoices.py index 87c6ab0..00dfa37 100644 --- a/synchro_orleans/data/management/commands/email_new_invoices.py +++ b/synchro_orleans/data/management/commands/email_new_invoices.py @@ -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)