Fixed empty response crash
authorEd Bartosh <eduard.bartosh@intel.com>
Fri, 26 Oct 2012 21:52:32 +0000 (00:52 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Fri, 26 Oct 2012 22:18:08 +0000 (01:18 +0300)
commit412cf0aa5323ca298f6e05b52243305637fd59ab
treef582d1d3603be04a8be24aa9eb2767c9f253edd0
parentf484f0a8485d5c6e87b5c21cdd545a430f60e955
Fixed empty response crash

Sometimemes OBS returns empty response without raising any exceptions.
remove_files API tries to parse this response as xml and crashing if
it's empty. It happens not very often, so trying 3 times to get
something parseable should work around this OBS bug.

Fixes: #495

Change-Id: Ica6c4fc3acf01f4c698651606dd1472ef888adf7
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
gitbuildsys/oscapi.py