glance_store exceptions trigger child exceptions (which break Glance's error handling)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance_store |
Fix Released
|
Critical
|
Unassigned | ||
Bug Description
------
import glance_store
def fn1():
print('goodbye')
raise IOError()
def fn2():
print('hello')
raise glance_
try:
fn1()
except IOError:
print('Caught IOError exception')
pass
try:
fn2()
except glance_
print('Caught store NotFound exception')
pass
-----------------
Running the above gives:
$ python /tmp/gs.py
goodbye
Caught IOError exception
hello
Traceback (most recent call last):
File "/tmp/gs.py", line 19, in <module>
fn2()
File "/tmp/gs.py", line 10, in fn2
raise glance_
File "/usr/local/
self.msg = kwargs.
KeyError: u'image'
Changed in glance-store: | |
importance: | Undecided → Critical |
It's been this way since January of 2014. I'm confused about what's "weird".