mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user