Giter VIP home page Giter VIP logo

Comments (5)

brbsix avatar brbsix commented on July 29, 2024 1

Placing the following code near the top of urlwatch will suppress the error:

import signal

# ignore broken pipe
signal.signal(signal.SIGPIPE, signal.SIG_DFL)

Maybe @thp can add it?

Upon further examination, it appears this will also suppress any SIGPIPE on a socket. Not sure if this behavior will pose a problem.

from urlwatch.

thp avatar thp commented on July 29, 2024 1

Looks like when a SIGPIPE for a socket is received, the network send will return an error, so that should be good. I guess I'll add this to Git now.

from urlwatch.

polyzen avatar polyzen commented on July 29, 2024

Glad this could get sorted so quickly! Thank you both.

from urlwatch.

DerEineDa avatar DerEineDa commented on July 29, 2024

I get this on my Fedora 24 workstation after installing urlwatch with pip:

$ urlwatch   File "/usr/bin/urlwatch", line 93
  ...
  ^
SyntaxError: invalid syntax

because of the "..." in commit 9c675de .

Edit: Sorry, that seems to be correct python3 syntax.

from urlwatch.

thp avatar thp commented on July 29, 2024

@DerEineDa as you probably have already noticed in your edit, you need to install urlwatch using Python 3's PIP.

from urlwatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.