Skip to content

Commit

Permalink
Merge #696: use warning instead of deprecated warn
Browse files Browse the repository at this point in the history
b49c14e use warning instead of deprecated warn (fametrano)

Pull request description:

  logging.warn has been deprecated since Python 3.3 and one should use logging.warning

  see also Blockstream/Jade#77

ACKs for top commit:
  achow101:
    ACK b49c14e

Tree-SHA512: f766b1049be3808c6d3f94ac8b72975b84272297c62c8c2fd65bf4d7c3dad940190b275e053ff233a112779ad59aa7dc08d709711cb5a956c3396e87ea62b784
  • Loading branch information
achow101 committed Nov 14, 2023
2 parents e77a339 + b49c14e commit 2b600cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hwilib/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def enumerate(password: Optional[str] = None, expert: bool = False, chain: Chain
except ImportError as e:
# Warn for ImportErrors, but largely ignore them to allow users not install
# all device dependencies if only one or some devices are wanted.
logging.warn(f"{e}, required for {module}. Ignore if you do not want this device.")
logging.warning(f"{e}, required for {module}. Ignore if you do not want this device.")
pass
return result

Expand Down

0 comments on commit 2b600cd

Please sign in to comment.