Skip to content

Commit 5eef33d

Browse files
Merge pull request #62 from Keeper-of-the-Keys/fix-downloads
Fix bug I introduced when removing asserts (and latent logic error?)
2 parents 163ab08 + a62e6da commit 5eef33d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

share/man/man1/gpo.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH GPO "1" "September 2024" "gpodder 4.17.1" "User Commands"
1+
.TH GPO "1" "December 2024" "gpodder 4.17.2" "User Commands"
22
.SH NAME
33
gpo \- gPodder command-line interface
44
.SH SYNOPSIS

src/gpodder/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
# This metadata block gets parsed by setup.py - use single quotes only
5151
__tagline__ = 'Media and podcast aggregator'
5252
__author__ = 'Thomas Perl <[email protected]>'
53-
__version__ = '4.17.1'
54-
__date__ = '2024-09-10'
53+
__version__ = '4.17.2'
54+
__date__ = '2024-12-10'
5555
__relname__ = 'Achva'
5656
__copyright__ = '© 2005-2024 Thomas Perl and the gPodder Team'
5757
__license__ = 'ISC / GPLv3 or later'

src/gpodder/download.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ class ContentRange(object):
107107

108108
def __init__(self, start, stop, length):
109109
if start < 0:
110-
raise Exception("Bad start: %r" % start)
111-
if not all(stop is None or (stop >= 0 and stop >= start)):
112-
raise Exception("Bad stop: %r" % stop)
110+
raise Exception("Bad start: {}, stop: {}, length: {}".format(str(start), str(stop), str(length)))
111+
if stop is None or (stop >= 0 and stop <= start):
112+
raise Exception("Bad stop: {}, start: {}, length: {}".format(str(stop), str(start), str(length)))
113113

114114
self.start = start
115115
self.stop = stop

0 commit comments

Comments
 (0)