mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Not all datatype splitters write a JSON file
This commit is contained in:
@@ -31,6 +31,9 @@ def __main__():
|
||||
Argument: a JSON file
|
||||
"""
|
||||
file_path = sys.argv.pop( 1 )
|
||||
if not os.path.isfile(file_path):
|
||||
#Nothing to do - some splitters don't write a JSON file
|
||||
sys.exit(0)
|
||||
data = simplejson.load(open(file_path, 'r'))
|
||||
try:
|
||||
class_name_parts = data['class_name'].split('.')
|
||||
|
||||
Reference in New Issue
Block a user