Comments (6)
fixed in release 1.16.0
from hacs_waste_collection_schedule.
I agree that the home assistant log should not be flodded with error messages. From my experience, the services are available almost 100% (to be honest, I have never experienced an outage). Therefore a missing fetch is a noticeable failure which I have no doubt to write to the log (once per day). Do you have other experiences?
from hacs_waste_collection_schedule.
Seems like it. In fact two of my Home Assistant instances that query the AWM München web service have the issue in their log. #106 Can't currently say when or how often this happens.
Happy to keep an eye out for it.
Therefore a missing fetch is a noticeable failure
While at it, maybe you could improve the message a little. The typical end user will only be distracted by the object address and the error
can be omitted. In fact the error can probably be further disected
from hacs_waste_collection_schedule.
Traced the error and had to find out that @jberrenberg already commited a fix. Thanks! 47f8250
Food for thought: This would have been a lot easier without the cascade of super generic try ... except Exception
blocks in the code. Python offers a lot more than that. Example: After removing them it took me seconds to identify the error and a solution.
Feel free to close the issue
from hacs_waste_collection_schedule.
Agree. The error message and the try .. except cascade is bad. Feel free to submit a PR :-)
from hacs_waste_collection_schedule.
I would be happy to but I feel this is a job better suited for someone who has a deeper understanding of the project, to make the right structural decisions.
Let's discuss. I would probably approach this by putting a try...except
block around entries = self._source.fetch()
alone. This method is just too explosive looking at all the different sources already implemented. Next I would break out different Exception classes to narrow down the error. Alternatively or additionally use the traceback library to recover the trace for logging. In case of doubt I would always want more logging details.
from hacs_waste_collection_schedule.
Related Issues (20)
- [Source Request]: Kildare, Ireland HOT 2
- [Source Request]: High Peak, UK HOT 1
- [Source Request]: RD4, The Netherlands HOT 1
- [Source Request]: Charnwood Borough Council, UK HOT 1
- [Source Request]: Austria - Abfuhrplaene Mayer HOT 1
- [Bug]: list index out of range when adding a location in Switzerland HOT 1
- Vöhl HOT 4
- [Bug]: Chiltern website has changed HOT 1
- [Bug]: Whittlesea - The Integration could not be loaded. HOT 1
- [Bug]: value.daysTo returns wrong admount of days HOT 1
- [Source Request]: Reno Djurs, Denmark HOT 1
- [Source Request]: west Oxfordshire, UK
- [Source Request]: For Germany 38527 Meine / Papenteich HOT 2
- [Bug]: Region AHA - Shows "unknown" HOT 1
- [Source Request]: antrim and newtownabbey HOT 1
- fetch failed for source
- [Bug]: fetch failed for source HOT 2
- [Bug]: Can't Add Integration - The source returned an invalid response
- [Source Request]: Northville Township, MI
- [Bug]: Republic Services, Invalid Response, Time Data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hacs_waste_collection_schedule.