Skip to content

Commit 7dc535a

Browse files
authored
Merge pull request #254 from leogregianin/fix/url-distribuicao
Corrige url de distribuicaodfe em homologacao
2 parents f1f9bbb + f205474 commit 7dc535a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pynfe/processamento/comunicacao.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,7 @@ def _get_url_an(self, consulta):
367367
ambiente = 'https://www.'
368368
# homologacao
369369
else:
370-
if consulta == 'DISTRIBUICAO':
371-
ambiente = 'https://hom1.'
372-
else:
373-
ambiente = 'https://hom.'
370+
ambiente = 'https://hom1.'
374371

375372
self.url = ambiente + NFE['AN'][consulta]
376373
return self.url

0 commit comments

Comments
 (0)