Skip to content

Commit

Permalink
change to status code
Browse files Browse the repository at this point in the history
  • Loading branch information
rcholic committed Jun 8, 2024
1 parent a0f6652 commit c597c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cschwabpy/SchwabAsyncClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async def place_order_async(
if response.status_code == 201:
return True
else:
raise Exception("Failed to place order. Status: ", response.headers)
raise Exception("Failed to place order. Status: ", response.status_code)
finally:
if not self.__keep_client_alive:
await client.aclose()
Expand Down

0 comments on commit c597c72

Please sign in to comment.