Skip to content

Commit a75de51

Browse files
committed
Fix "TypeError: unhashable type" when calling json_request
This bug was introduced as part of #43. `dry_run` was appended to construct_payload parameters but there was a single instance where construct_payload was executed and relying on `is_json` parameter's default value.
1 parent fb6b7f0 commit a75de51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gcm/gcm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def json_request(self, registration_ids, data=None, collapse_key=None,
271271
for attempt in range(retries):
272272
payload = self.construct_payload(
273273
registration_ids, data, collapse_key,
274-
delay_while_idle, time_to_live, dry_run
274+
delay_while_idle, time_to_live, True, dry_run
275275
)
276276
response = self.make_request(payload, is_json=True)
277277
info = self.handle_json_response(response, registration_ids)

0 commit comments

Comments
 (0)