Disable scroll lock
This commit is contained in:
parent
fc22882dc4
commit
2eb9a62c91
4
main.py
4
main.py
|
@ -10,6 +10,8 @@ logging.basicConfig(
|
||||||
logging.info('')
|
logging.info('')
|
||||||
logging.info('Boot up')
|
logging.info('Boot up')
|
||||||
|
|
||||||
|
os.system('stty -ixon')
|
||||||
|
|
||||||
import curses
|
import curses
|
||||||
import requests
|
import requests
|
||||||
import pytz
|
import pytz
|
||||||
|
@ -101,7 +103,7 @@ if wa_api_key:
|
||||||
def think_send(query):
|
def think_send(query):
|
||||||
result = ''
|
result = ''
|
||||||
try:
|
try:
|
||||||
res = wa_client.query(query, timeout=5)
|
res = wa_client.query(query, timeout=10)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
logging.error('Error hitting W|A API: {} - {}\n'.format(e.__class__.__name__, e))
|
logging.error('Error hitting W|A API: {} - {}\n'.format(e.__class__.__name__, e))
|
||||||
return 'Network error'
|
return 'Network error'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user