mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-02-18 00:29:17 +01:00
Fix bug in 612f2be5d3924540158dfbe5f25d841f04cff8c6
This commit is contained in:
parent
ca9f1df253
commit
44f14eb43e
@ -4755,7 +4755,7 @@ def _base_n_table(n, table):
|
||||
raise ValueError('Either table or n must be specified')
|
||||
table = (table or '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')[:n]
|
||||
|
||||
if n != len(table):
|
||||
if n and n != len(table):
|
||||
raise ValueError(f'base {n} exceeds table length {len(table)}')
|
||||
return table
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user