mirror of https://github.com/dirtbags/tanks.git
tput fall back to FS
This commit is contained in:
parent
41b448dbba
commit
4fac8f422e
|
@ -39,7 +39,7 @@ def read_tank(infile):
|
|||
def post_tank(headers, code, url):
|
||||
token = os.environ.get('token')
|
||||
if not token:
|
||||
raise RuntimeError("Must provide token in 'token' environment variable")
|
||||
token = open('token').readline().strip()
|
||||
request = {}
|
||||
request['token'] = token
|
||||
request['name'] = headers.get('Tank-Name', '')
|
||||
|
|
Loading…
Reference in New Issue