Skip to content

Commit bd94f7e

Browse files
committed
Fix exception raising in BaseCache
NotImplemented is a sentinel object, not an exception type. It was mistakenly used instead of NotImplementedError.
1 parent 0488eca commit bd94f7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cachecontrol/cache.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
class BaseCache(object):
99

1010
def get(self, key):
11-
raise NotImplemented()
11+
raise NotImplementedError()
1212

1313
def set(self, key, value):
14-
raise NotImplemented()
14+
raise NotImplementedError()
1515

1616
def delete(self, key):
17-
raise NotImplemented()
17+
raise NotImplementedError()
1818

1919
def close(self):
2020
pass

0 commit comments

Comments
 (0)