From a9dcc074270606bd7b2d2b2707547497385e8632 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Sat, 11 Nov 2017 14:27:36 -0600 Subject: [PATCH] Fix - Generar XML sin relacionados --- source/app/controllers/cfdi_xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/controllers/cfdi_xml.py b/source/app/controllers/cfdi_xml.py index fb61c4b..dee3bfa 100644 --- a/source/app/controllers/cfdi_xml.py +++ b/source/app/controllers/cfdi_xml.py @@ -117,7 +117,7 @@ class CFDI(object): return def _relacionados(self, datos): - if not datos['tipo'] or not datos['cfdis']: + if not datos or not datos['tipo'] or not datos['cfdis']: return node_name = '{}:CfdiRelacionados'.format(self._pre)