Skip to content

Return 0 and a warning if repo has no changes#680

Merged
hexylena merged 1 commit intogalaxyproject:masterfrom
nsoranzo:fix_494
May 26, 2017
Merged

Return 0 and a warning if repo has no changes#680
hexylena merged 1 commit intogalaxyproject:masterfrom
nsoranzo:fix_494

Conversation

@nsoranzo
Copy link
Member

Fix #494 .

)
except Exception as e:
if isinstance(e, bioblend.ConnectionError) and e.status_code == 400 and \
e.body == '{"content_alert": "", "err_msg": "No changes to repository."}':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would check only the err_msg here. Content alert has nothing to do with this I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BioBlend returns this ConnectionError exception whose body attribute is the stringified version of the JSON returned by Galaxy. I preferred to be strict to not match other real errors, we can relax this if needed.

@nsoranzo nsoranzo deleted the fix_494 branch May 31, 2017 08:59
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