Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.

Commit f6a6773

Browse files
authored
Merge pull request #1 from rapid7/encrypted_databags
Encrypted databags update
2 parents 105b22e + 4374d70 commit f6a6773

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

chef/exceptions.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Exception hierarchy for chef
22
# Copyright (c) 2010 Noah Kantrowitz <[email protected]>
33

4-
54
class ChefError(Exception):
65
"""Top-level Chef error."""
76

8-
97
class ChefServerError(ChefError):
108
"""An error from a Chef server. May include a HTTP response code."""
119

@@ -23,11 +21,9 @@ def from_error(message, code=None):
2321
}.get(code, ChefServerError)
2422
return cls(message, code)
2523

26-
2724
class ChefServerNotFoundError(ChefServerError):
2825
"""A 404 Not Found server error."""
2926

30-
3127
class ChefAPIVersionError(ChefError):
3228
"""An incompatible API version error"""
3329

@@ -41,4 +37,3 @@ def __init__(self, version):
4137

4238
class ChefDecryptionError(ChefError):
4339
"""Error decrypting data bag value. Most likely the provided key is incorrect"""
44-

0 commit comments

Comments
 (0)