Skip to content

Commit c9ae42a

Browse files
committed
Drop redundant typecheck for MappingProxy.set
1 parent 9755fea commit c9ae42a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scrapinghub/client/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ def get(self, key):
131131
return next(self._origin.apiget(key))
132132

133133
def set(self, key, value):
134-
if not key or not isinstance(key, six.string_types):
135-
raise InvalidUsage("key should be a string")
136134
self._origin.apipost(key, data=json.dumps(value), is_idempotent=True)
137135

138136
def update(self, values):

0 commit comments

Comments
 (0)