retreving userinfo data fix

This commit is contained in:
Serghei Mihai 2014-10-15 10:10:27 +02:00
parent 136a01911b
commit 781a96a5e1
1 changed files with 1 additions and 1 deletions

View File

@ -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)