Skip to content

Commit

Permalink
Fix key error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Holland committed Jun 6, 2019
1 parent 6451757 commit 14c3bda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datasketch/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from pynamodb.connection.util import pythonic
from pynamodb.attributes import UnicodeAttribute, BinaryAttribute
import ulid
ddb = True
except ImportError:
ddb = None

Expand Down Expand Up @@ -523,8 +524,8 @@ def has_key(self, key):
return True

def make_safe_table_name(name):
return name.decode('utf-8').replace('\\', '')

return str(name)[2:-1].replace('\\', '')
class DDBSetStorage(UnorderedStorage, DDBListStorage):
def __init__(self, config, name = None):
self.name = name
Expand Down

0 comments on commit 14c3bda

Please sign in to comment.