-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use old string format to support older versions of python 3 (#7)
- Loading branch information
1 parent
88291e0
commit 845bbcf
Showing
3 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import sys | ||
|
||
|
||
class StatusCodeException(Exception): | ||
def __init__(self, status_code: int, *args: object) -> None: | ||
super().__init__(*args) | ||
self.status_code = status_code | ||
|
||
def __str__(self) -> str: | ||
return f"Operation failed with status {self.status_code}" | ||
return "Operation failed with status {}".format(self.status_code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="reputation-service-API-client", | ||
version="1.0.0", | ||
version="1.0.1", | ||
author="Check Point Software Technologies LTD.", | ||
author_email="[email protected]", | ||
description="Reputation Service python example", | ||
|