parent
c99f564902
commit
7a4fbf21e9
|
@ -93,6 +93,8 @@ class Command(BaseCommand):
|
|||
response = requests.get(url)
|
||||
try:
|
||||
data = response.json()['data']
|
||||
if not data:
|
||||
raise ValueError
|
||||
except (KeyError, ValueError):
|
||||
continue
|
||||
attachment = os.path.join(settings.INVOICES_DIR, 'facture_%s.pdf' % invoice.id)
|
||||
|
|
Reference in New Issue