Skip to content

Commit

Permalink
Merge pull request #134 from bertybuttface/patch-5
Browse files Browse the repository at this point in the history
Fix list_to_tuple
  • Loading branch information
dmunozv04 authored Jan 29, 2024
2 parents a75dd83 + a9f9a5b commit 4f39f64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iSponsorBlockTV/api_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

def list_to_tuple(function):
def wrapper(*args):
args = [tuple(x) if x is list else x for x in args]
args = [tuple(x) if isinstance(x, list) else x for x in args]
result = function(*args)
result = tuple(result) if result is list else result
result = tuple(result) if isinstance(result, list) else result
return result

return wrapper
Expand Down

0 comments on commit 4f39f64

Please sign in to comment.