Skip to content

Commit

Permalink
CLI fix: Windows signal
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Mar 14, 2022
1 parent 3289fd2 commit e975f1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trafilatura/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
from multiprocessing import Pool
from os import makedirs, path, walk

from signal import alarm, signal
# SIGALRM isn't present on Windows, detect it
try:
from signal import SIGALRM
from signal import signal, alarm, SIGALRM
HAS_SIGNAL = True
except ImportError:
HAS_SIGNAL = False
Expand Down

0 comments on commit e975f1b

Please sign in to comment.