race auth exception

This commit is contained in:
j 2011-07-07 00:07:07 +02:00
parent 79b1c7ed85
commit 01ea39b02a

View file

@ -5,7 +5,6 @@ import os
from ox.utils import json
def get(key):
user_auth = os.environ.get('oxAUTH', os.path.expanduser('~/.ox/auth.json'))
auth = {}
@ -17,7 +16,7 @@ def get(key):
if key in auth:
return auth[key]
print "please add key %s to json file '%s'" % (key, user_auth)
return ""
raise Exception,"no key %s found" % key
def update(key, value):
user_auth = os.environ.get('oxAUTH', os.path.expanduser('~/.ox/auth.json'))