Fixes genome decode handling. dbkey was either unicode or str here variously, and the previous change broke the case where it was unicode.

This commit is contained in:
Dannon Baker
2017-12-12 09:07:38 -05:00
parent aa0334d72f
commit 78a2626d13
+1 -1
View File
@@ -26,7 +26,7 @@ messages = Bunch(
def decode_dbkey(dbkey):
""" Decodes dbkey and returns tuple ( username, dbkey )"""
if isinstance(dbkey, str) and ':' in dbkey:
if isinstance(dbkey, basestring) and ':' in dbkey:
return dbkey.split(':')
else:
return None, dbkey