Merge "'except:' to 'except Exception:' as per HACKING"
This commit is contained in:
@@ -107,7 +107,7 @@ class _AnsiColorizer(object):
|
||||
except curses.error:
|
||||
curses.setupterm()
|
||||
return curses.tigetnum("colors") > 2
|
||||
except:
|
||||
except Exception:
|
||||
raise
|
||||
# guess false in case of error
|
||||
return False
|
||||
|
||||
@@ -253,7 +253,7 @@ class API(base.Base):
|
||||
volume_type=vol_type,
|
||||
metadata=dict(to_vsa_id=str(vsa_id)),
|
||||
availability_zone=availability_zone)
|
||||
except:
|
||||
except Exception:
|
||||
self.update_vsa_status(context, vsa_id,
|
||||
status=VsaState.PARTIAL)
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user