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

Commit 4374d70

Browse files
authored
Merge branch 'feature/encrypted-data-bags' into encrypted_databags
2 parents ef67bc0 + 105b22e commit 4374d70

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
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,15 +21,12 @@ 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

34-
3530
class ChefObjectTypeError(ChefError):
3631
"""An invalid object type error"""
3732

chef/tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_bad_key_raises(self):
4848
for item in invalids:
4949
self.assertRaises(
5050
ValueError, ChefAPI, 'foobar', item, 'user')
51-
51+
5252
def test_encryption(self):
5353
api = self.load('encryption.rb')
5454
self.assertEqual(api.encryption_version, '2')

0 commit comments

Comments
 (0)