line 387, in ui_command_create so = BlockStorageObject(name,
dev, readonly=readonly, write_back=write_back) File
"/usr/lib/python2.7/site-packages/rtslib/tcm.py", line 677, in
__init__ raise TypeError: exceptions must be old-style classes
or derived from BaseException, not NoneType
[root@bl05ssn09 ~]# targetcli /backstores/block create
name=test dev=/dev/data/TEST exceptions must be old-style
classes or derived from BaseException, not NoneType
On 06/23/2014 07:44 AM, Jerome Martin wrote:
Hi Andy,
Just had a quick look at this...
Was that only an issue with the fb-specific object caching? A quick
glance at your patch suggests so, but I still do not like the way the
exception (did not) bubbled up. I'll change that in my next cycle I
guess, WDYT - do you plan on improving that on your side?
The cache fix was unrelated.
I agree, even though removing the set_attribute() resolved the issue,
the bug report raised questions about the exception handling. The syntax
<abc>
try:
<defgh>
except:
<abc cleanup>
raise
should be fine, and should not cause that error.
Regards -- Andy
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html