Skip to content
Snippets Groups Projects
Commit 05c02f83 authored by Duncan Macleod's avatar Duncan Macleod Committed by GraceDB
Browse files

gracedb.superevents: decode input to StringIO

only required on python2, but this code will break on python3 anyway
parent 8b4c5f8b
No related branches found
No related tags found
No related merge requests found
......@@ -362,7 +362,7 @@ class Superevent(CleanSaveModel, AutoIncrementModel):
# object's primary key. We prepend 'superevent' so as to not
# have collisions with Event files
hash_input = 'superevent' + str(self.id)
hdf = StringIO(sha1(hash_input).hexdigest())
hdf = StringIO(sha1(hash_input).hexdigest().decode('utf-8'))
# Build up the nodes of the directory structure
nodes = [hdf.read(i) for i in settings.GRACEDB_DIR_DIGITS]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment