Skip to content

handle all exceptions gitpython can raise - #23965

Merged
msteed merged 1 commit into
saltstack:2014.7from
hvnsweeting:20147-fix-gitfs-gitpython-exception
May 20, 2015
Merged

msteed merged 1 commit into
saltstack:2014.7from
hvnsweeting:20147-fix-gitfs-gitpython-exception

Conversation

@hvnsweeting

Copy link
Copy Markdown
Contributor

and make the code cleaner.

initially, I handle the exception by:

except (gitdb.exc.BadObject, gitdb.exc.BadName):

but it will fail if user use old version of gitdb, because gitdb.exc.BadName only added since gitpython-developers/gitdb@7bde7b0 , only available in 0.6.4+.

and make the code cleaner
@hvnsweeting
hvnsweeting force-pushed the 20147-fix-gitfs-gitpython-exception branch from a0c8b3f to 2576301 Compare May 20, 2015 08:45
@msteed msteed added bug broken, incorrect, or confusing behavior Minor Change Tests-Passed P3 Priority 3 and removed Tests-Passed labels May 20, 2015
@msteed

msteed commented May 20, 2015

Copy link
Copy Markdown
Contributor

@hvnsweeting - looks good, thank you!

msteed pushed a commit that referenced this pull request May 20, 2015
…exception

handle all exceptions gitpython can raise
@msteed
msteed merged commit 314e4db into saltstack:2014.7 May 20, 2015
@hvnsweeting
hvnsweeting deleted the 20147-fix-gitfs-gitpython-exception branch June 1, 2015 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug broken, incorrect, or confusing behavior P3 Priority 3 Tests-Passed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants