This commit is contained in:
Kovid Goyal 2019-03-21 20:40:28 +05:30
parent df0e052c08
commit 3c86c9be6f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -57,7 +57,7 @@ def search(query, max_results=10, timeout=60):
if 'Price:' in price: if 'Price:' in price:
try: try:
price = price.partition('Price:')[2] price = price.partition('Price:')[2]
price = re.sub('\s', ' ', price).strip() price = re.sub(r'\s', ' ', price).strip()
price = price.split(' ')[0].strip() price = price.split(' ')[0].strip()
except Exception: except Exception:
price = 'Unknown' price = 'Unknown'