TionAPI / tion_python

Python module for Tion
GNU Lesser General Public License v3.0
64 stars 9 forks source link

fix(retry decorator): show last exception if limit reached #35

Closed IATkachenko closed 2 years ago

IATkachenko commented 2 years ago

decorator will raise just MaxTriesExceededError exception and in some situations raising of this exception will be unclear for user. For example, if we are reach limit with BTLEDisconnect error at log level WARNING, then only critical message before raising MaxTriesExceededError will be shown.