def bic(self): """BIC or None: The BIC associated to the IBAN´s bank-code. If the bank code is not available in Schwifty's registry ``None`` is returned. .. versionchanged:: 2020.08.1 Returns ``None`` if no appropriate :class:`BIC` can be constructed. """ try: return BIC.from_bank_code(self.country_code, self.bank_code or self.branch_code) except ValueError: pass
def bic(self): """BIC: The BIC associated to the IBAN´s bank-code.""" return BIC.from_bank_code(self.country_code, self.bank_code)