Skip to content

Commit 7f55dff

Browse files
committed
Print error to stderr
1 parent 188c315 commit 7f55dff

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nova3/engines/eztv.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# VERSION: 1.17
1+
# VERSION: 1.18
22
# AUTHORS: nindogo
33
# CONTRIBUTORS: Diego de las Heras ([email protected])
44

55
import re
6+
import sys
67
import urllib.error
78
import urllib.parse
89
import urllib.request
@@ -94,7 +95,7 @@ def do_query(self, what):
9495
response = urllib.request.urlopen(req) # nosec B310
9596
return response.read().decode('utf-8')
9697
except urllib.error.URLError as errno:
97-
print(f"Connection error: {errno.reason}")
98+
print(f"Connection error: {errno.reason}", file=sys.stderr)
9899
return ""
99100

100101
def search(self, what, cat='all'):

nova3/engines/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
eztv: 1.17
1+
eztv: 1.18
22
jackett: 4.3
33
limetorrents: 4.11
44
piratebay: 3.7

0 commit comments

Comments
 (0)