Skip to content

Do not override None with empty string#950

Merged
jmchilton merged 1 commit intogalaxyproject:masterfrom
jdavcs:fix_dm_conf_file
Aug 8, 2019
Merged

Do not override None with empty string#950
jmchilton merged 1 commit intogalaxyproject:masterfrom
jdavcs:fix_dm_conf_file

Conversation

@jdavcs
Copy link
Member

@jdavcs jdavcs commented Aug 8, 2019

This is a partial solution to #946; it addresses the IOError.
The cause for the error is described here: #946 (comment)

The edits prevent planemo from passing an empty string as the value of data_manager_config_file to the managed galaxy instance as part of kwargs. An empty string was resolved to the current directory and, due to stricter exception handling in galaxy (introduced in galaxyproject/galaxy#921) that caused an error.

This should work correctly for both cases, when a path exists (when it's a data manager) and when it doesn't ( when it's a regular tool or a directory).

Ping @jmchilton , @natefoo . (I am not at all sure this is the optimal solution here, but it's my best guess, for now.)

Partial solution to galaxyproject#946 (first attempt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants