Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshawkes committed Nov 17, 2024
1 parent 006be4f commit 30e1976
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions polytope_server/common/datasource/polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def match(self, request):
if "feature" not in r:
raise Exception("request does not contain key 'feature'")


# Check that there is only one value if required
for k, v in r.items():
if k in self.req_single_keys:
Expand All @@ -150,7 +149,6 @@ def match(self, request):
elif len(v) == 0:
raise Exception("Expected a value for key {}".format(k))


for k, v in self.match_rules.items():
# Check that all required keys exist
if k not in r:
Expand All @@ -165,7 +163,6 @@ def match(self, request):
if req_value not in v:
raise Exception("got {}: {}, not one of {}".format(k, req_value, v))


# Downstream expects MARS-like format of request
for key in r:
if isinstance(r[key], list):
Expand Down

0 comments on commit 30e1976

Please sign in to comment.