debug
This commit is contained in:
parent
5783a38faf
commit
0579b9af0f
@ -444,7 +444,8 @@ class CM_BOT:
|
||||
return float(soup.find('table', {'class': 'generalContent'}).find(text=re.compile('Credit Available')).parent.parent.find_all('td')[2].text)
|
||||
except:
|
||||
print(f"Error getting credit.")
|
||||
with open(f'{datetime.datetime.now().strftime('%Y%m%d_%H%M')}.html', 'wb') as f:
|
||||
now = datetime.datetime.now().strftime('%Y%m%d_%H%M')
|
||||
with open(f'credit-{now}.html', 'wb') as f:
|
||||
f.write(response.content)
|
||||
return 0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user