• 0 Posts
  • 13 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle

  • uranibaba@lemmy.worldtoMemes@lemmy.mlDMCAtendo
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    2 months ago

    I don’t follow. How would no IP give more money to the workers? How would no IP change how the company was run?

    I’m not arguing IP here, I just seems to me that you are mixing two different things. You can have a employee owned company and still have IP.

    Or am I missing something obvious?







  • plant-based steaks

    I’ve tried plenty of different plant based meat substitutes and so for, not one of them can hold a candle to the real taste. Like, it is not even close in my opinion. I can see the market for it, but plant based diet can be incredible when not trying to impersonate meat. Like lentils with curry. Not meat required and super tasty.

    So would argue that meat substitutes are the wrong way to go if you want to eat tasty non meat stuff.



  • It’s because there is no clear indication of where a block ends.

    Here is some sample code. I find it difficult to tell how many indentations I have or where I need to write if I want to continue at a certain level.

    import time
    import aiohttp
    
    """
    Retreives the data from RSS URL and return the status codes as well as the data. Return -1 if something went wrong.
    """
    async def get_rss_feed(rss_url):
        async with aiohttp.ClientSession() as session:
            try:
                retry_count = 0
                while retry_count < 5:
                    async with session.get(rss_url) as resp:
                        if resp.status == 200:
                            return {'status': resp.status, 'data': await resp.text()}
                        else:
                            retry_count += 1
                            time.sleep(60)
                if retry_count == 5:
                    raise ValueError('To many failed connection attempts', retry_count)
            except aiohttp.InvalidURL as error:
                return {'status': -1, 'data': f"Error: {rss_url} is not a valid URL.", 'error': error}
            except aiohttp.ClientConnectorError as error:
                return {'status': -1, 'data': f"Error: Could not connect to {rss_url}.", 'error': error}
            except ValueError as error:
                return {'status': -1, 'data': f"Error: Could not connect to {rss_url} after {retry_count} attempts.", 'error': error}