yfinance-exporter 1.0.11__py3-none-any.whl → 1.0.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: yfinance-exporter
3
- Version: 1.0.11
3
+ Version: 1.0.13
4
4
  Summary:
5
5
  Author: François Schmidts
6
6
  Author-email: francois@schmidts.fr
@@ -0,0 +1,4 @@
1
+ yfinance_exporter.py,sha256=6whsA4pOho_xJBpJfgycqD-ddlkvwDbgU-1nwjMSdBQ,4374
2
+ yfinance_exporter-1.0.13.dist-info/METADATA,sha256=IJ_25EeeHqG9ZmgBx-3C0YJGMkX5T96XXvv5ly_Lmqc,1526
3
+ yfinance_exporter-1.0.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
4
+ yfinance_exporter-1.0.13.dist-info/RECORD,,
yfinance_exporter.py CHANGED
@@ -76,7 +76,7 @@ def collect(stock) -> bool:
76
76
  ticker = Ticker(stock.ycode)
77
77
  try:
78
78
  value = ticker.fast_info["last_price"]
79
- except KeyError:
79
+ except (KeyError, AttributeError):
80
80
  logger.warning("%r: no value from yfinance", stock.name)
81
81
  value = None
82
82
  if not isinstance(value, (int, float)):
@@ -1,4 +0,0 @@
1
- yfinance_exporter.py,sha256=eTQD2xprQ9KOC6ORnuJBxVBgAU46I04eavtmxpwajLU,4356
2
- yfinance_exporter-1.0.11.dist-info/METADATA,sha256=r10fDiIp6KMZML7STuDXqG1lbQYHfYlGslBC2wv9ZVc,1526
3
- yfinance_exporter-1.0.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
4
- yfinance_exporter-1.0.11.dist-info/RECORD,,