Remove duplicatated code

I just noticed what looks like a copy/paste artifact here or a merge
conflict resolution, not sure
This commit is contained in:
Kevin Quinn 2020-09-16 19:55:21 -04:00 committed by Daniel Wozniak
parent fbb6728179
commit bb6fbdd7af

View file

@ -1207,13 +1207,6 @@ class LowDataAdapter:
except (TypeError, ValueError):
raise cherrypy.HTTPError(401, "Invalid token")
if "token" in chunk:
# Make sure that auth token is hex
try:
int(chunk["token"], 16)
except (TypeError, ValueError):
raise cherrypy.HTTPError(401, "Invalid token")
if client:
chunk["client"] = client