Skip to content

Commit

Permalink
fix: Compare arn strings against explicit enum string values
Browse files Browse the repository at this point in the history
  • Loading branch information
ltnln committed Jul 15, 2024
1 parent 073fb4e commit 3c9fd67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/braket/aws/aws_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ def emulator(self) -> Emulator:
Returns:
Emulator: An emulator for this device, if this is not a simulator device.
"""
if self._arn in Devices.Amazon:
if self._arn in [simulator_enum.value for simulator_enum in Devices.Amazon]:
raise ValueError(
"Creating an emulator from a Braket managed simulator is not supported."
)
Expand Down

0 comments on commit 3c9fd67

Please sign in to comment.