We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f198053 commit 7606737Copy full SHA for 7606737
amazon_paapi/tools/asin.py
@@ -1,7 +1,7 @@
1
"""Some useful tools."""
2
3
-from ..errors import AsinNotFoundException
4
import re
+from ..errors import AsinNotFoundException
5
6
7
def get_asin(text: str) -> str:
@@ -14,5 +14,5 @@ def get_asin(text: str) -> str:
14
asin = re.search(r'(dp|gp/product|gp/aw/d|dp/product)/([a-zA-Z0-9]{10})', text)
15
if asin:
16
return asin.group(2)
17
- else:
18
- raise AsinNotFoundException('Asin not found: ' + text)
+
+ raise AsinNotFoundException('Asin not found: ' + text)
0 commit comments