Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ratushnyy committed Jan 18, 2024
1 parent 44cd80a commit 2a57564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/charms/mongodb/v1/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def process_pbm_error(error_string: Optional[_StrOrBytes]) -> str:
message = "couldn't configure s3 backup option"
if not error_string:
return message
if type(error_string) == bytes:
if type(error_string) is bytes:
error_string = error_string.decode("utf-8")
if "status code: 403" in error_string: # type: ignore
message = "s3 credentials are incorrect."
Expand Down

0 comments on commit 2a57564

Please sign in to comment.