Skip to content

Commit 64f2fc9

Browse files
Nicolas Ledezrbeuque74
authored andcommitted
Add "pragma: no cover" to have a 100% coverage
1 parent ebf5b27 commit 64f2fc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ovh/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def __init__(self, *args, **kwargs):
4141
super(APIError, self).__init__(*args, **kwargs)
4242

4343
def __str__(self):
44-
if self.query_id:
44+
if self.query_id: # pragma: no cover
4545
return "{} \nOVH-Query-ID: {}".format(super(APIError, self).__str__(), self.query_id)
46-
else:
46+
else: # pragma: no cover
4747
return super(APIError, self).__str__()
4848

4949
class HTTPError(APIError):

0 commit comments

Comments
 (0)