Skip to content

Commit

Permalink
Removing recursion depth re-raise
Browse files Browse the repository at this point in the history
  • Loading branch information
linsomniac committed Jan 19, 2024
1 parent 92b2bdf commit d818594
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions spotify2ytmusic/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def _create(yt: YTMusic, title: str, description: str) -> Union[str, dict]:
print(
f"ERROR: (Retrying create_playlist: {title}) {e} in {exception_sleep} seconds"
)
if "maximum recursion depth" in str(e):
raise
time.sleep(exception_sleep)
exception_sleep *= 2

Expand Down Expand Up @@ -442,8 +440,6 @@ def copier(
print(
f"ERROR: (Retrying add_playlist_items: {dst_pl_id} {dst_track['videoId']}) {e} in {exception_sleep} seconds"
)
if "maximum recursion depth" in str(e):
raise
time.sleep(exception_sleep)
exception_sleep *= 2

Expand Down

0 comments on commit d818594

Please sign in to comment.