olist / correios

A client library for Brazilian Correios APIs and services (SIGEP & SRO).
Apache License 2.0
171 stars 44 forks source link

Fix build_receipt method #165

Closed BrunoLN closed 5 years ago

BrunoLN commented 5 years ago

Previous code didn't work for all cases of build receipt and continues to raise the exception TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType’ because in addition to the não processado and processado status, there is a status bloqueado that is not in the manual. Because of this, I reversed the condition.