Skip to content

Commit

Permalink
exception in envelope for keys starting with _
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Apr 21, 2021
1 parent 043ee3b commit e4cd7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/service-library/src/servicelib/rest_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


def is_enveloped_from_map(payload: Mapping) -> bool:
return all(k in ENVELOPE_KEYS for k in payload.keys())
return all(k in ENVELOPE_KEYS for k in payload.keys() if not str(k).startswith("_"))


def is_enveloped_from_text(text: str) -> bool:
Expand Down

0 comments on commit e4cd7a5

Please sign in to comment.