Merge main into retry: main 최신 코드 병합
This commit is contained in:
commit
c7b77fb532
9 files changed
+146
-39
No files matched your search
@@ -2,7 +2,7 @@ import asyncio
|
||||
from playwright.async_api import async_playwright
|
||||
from urllib import parse
|
||||
|
||||
class nvMapPwScraper():
|
||||
class NvMapPwScraper():
|
||||
# cls vars
|
||||
is_ready = False
|
||||
_playwright = None
|
||||
@@ -107,7 +107,7 @@ patchedGetter.toString();''')
|
||||
if "/place/" in self.page.url:
|
||||
return self.page.url
|
||||
|
||||
if (count == self._max_retry / 2):
|
||||
raise Exception("Failed to identify place id. loading timeout")
|
||||
else:
|
||||
raise Exception("Failed to identify place id. item is ambiguous")
|
||||
# if (count == self._max_retry / 2):
|
||||
# raise Exception("Failed to identify place id. loading timeout")
|
||||
# else:
|
||||
# raise Exception("Failed to identify place id. item is ambiguous")
|
||||
+1
-1
@@ -231,7 +231,7 @@ class SunoService:
|
||||
)
|
||||
|
||||
code = result.get("code", 0)
|
||||
data = result.get("data", {})
|
||||
data = result.get("data") or {}
|
||||
|
||||
if code != 200:
|
||||
return PollingSongResponse(
|
||||
|
||||
Reference in new issue
Block a user