Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: update bapi.py #333

Merged

Conversation

nautics889
Copy link
Contributor

@nautics889 nautics889 commented Feb 6, 2024

Little updates in bapi.py.

My apologies for the delay.

This commit contains tiny changes of bapi.py module:

  1. Adds logger to be used across bapi.py.
  2. Adds catching of specific exceptions instead of general Exception, adds logging an according message with (log level DEBUG since most likely that logs would be useful only when troubleshooting).
  3. Using f-strings instead of string concatination (AFAIK the package support only 3.7+).

This PR does not affect behavior of the code (except adding some new log-records).


  • (feat): add basic logger in bapi.py
  • (refactor): catch specific exceptions instead of the general one when requesting real addr in bapi.py
  • (refactor) use f-string instead of string concat (since the package supports only py 3.7+)

* (feat): add basic logger in bapi.py
* (refactor): catch specific exceptions instead of the general one when
  requesting real addr in bapi.py
* (refactor) use f-string instead of string concat (since the package
  supports only py 3.7+)
@nautics889 nautics889 marked this pull request as ready for review February 9, 2024 18:27
@upbit upbit merged commit cc685ec into upbit:master Feb 15, 2024
2 checks passed
@upbit
Copy link
Owner

upbit commented Feb 15, 2024

Thanks for contribution! Using logger is better than ignoring all errors as before.
Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants