Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fix JSONDecoder 'encoding' bug (#649)
Browse files Browse the repository at this point in the history
* Fix serialization bug

* Revert "Fix serialization bug"

This reverts commit 72a08bc.

* Try suggested fix

* check for 'encoding'
  • Loading branch information
kt474 committed Jun 5, 2023
1 parent e2e4463 commit 5583504
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qiskit_ibm_provider/utils/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ class RuntimeDecoder(json.JSONDecoder):
"""JSON Decoder used by runtime service."""

def __init__(self, *args: Any, **kwargs: Any):
kwargs.pop("encoding", None)
super().__init__(object_hook=self.object_hook, *args, **kwargs)
self.__parameter_vectors: Dict[str, Tuple[ParameterVector, set]] = {}
self.__read_parameter_expression = (
Expand Down

0 comments on commit 5583504

Please sign in to comment.