mirror of
				https://github.com/tanrax/RSSingle.git
				synced 2025-03-03 03:35:46 +01:00 
			
		
		
		
	Add general exception
Co-authored-by: Dom Rodriguez <shymega@shymega.org.uk>
This commit is contained in:
		
				
					committed by
					
						
						Dom Rodriguez
					
				
			
			
				
	
			
			
			
						parent
						
							846de90642
						
					
				
				
					commit
					e8c77f3398
				
			@@ -96,7 +96,7 @@ def main():
 | 
			
		||||
    for feed in CONFIG["feeds"]:
 | 
			
		||||
        rss = parse_rss_feed(feed)
 | 
			
		||||
        entries = rss.get("entries")
 | 
			
		||||
        log.debug("Iterating over [input] feed entries..")
 | 
			
		||||
        log.debug(f"Iterating over {feed} feed entries..")
 | 
			
		||||
        for entry in entries:
 | 
			
		||||
            log.debug("New feed entry created.")
 | 
			
		||||
 | 
			
		||||
@@ -171,7 +171,7 @@ def main():
 | 
			
		||||
                        fe.published("1970-01/01T00:00:00+00:00")
 | 
			
		||||
                        fe.updated("1970-01/01T00:00:00+00:00")
 | 
			
		||||
                        continue
 | 
			
		||||
            except KeyError:
 | 
			
		||||
            except Exception:
 | 
			
		||||
                # Sometimes feeds don't even provide a publish date, so we default to
 | 
			
		||||
                # the start date &time of the Unix epoch.
 | 
			
		||||
                log.warning("Empty publish attribute, defaulting..")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user