Fix - Generar XML sin relacionados

This commit is contained in:
Mauricio Baeza 2017-11-11 14:27:36 -06:00
parent 2e06083e29
commit a9dcc07427
1 changed files with 1 additions and 1 deletions

View File

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