added the check for tokens back in and removed dev print statements

This commit is contained in:
Joe 2013-08-09 15:49:52 -04:00
parent 25755fd145
commit 0777151cd2
1 changed files with 2 additions and 1 deletions

View File

@ -207,6 +207,8 @@ Traffic Legend:
# Extract the token parameter from url
token = urlparse(path)[4] # 4 is the query from url
if not token:
raise self.EClose("Token not present")
# target_cfg can be a single config file or directory of
# config files
@ -221,7 +223,6 @@ Traffic Legend:
if line and not line.startswith('#'):
ftoken, target = line.split(': ')
if ftoken == token:
print(target)
return target.split(':')
raise self.EClose("Token '%s' not found" % token)