- **status**: accepted --> review
- **Comment**:

Solution fix:
+ ImmObject use exceptions raise without NoneType



---

** [tickets:#1410] pyosaf: Invalid exception used in ImmObject (object.py)**

**Status:** review
**Milestone:** future
**Created:** Fri Jul 10, 2015 10:11 AM UTC by Johan MÃ¥rtensson
**Last Updated:** Mon Oct 02, 2017 09:45 AM UTC
**Owner:** Hieu Nguyen


ImmObject uses an invalid way to raise exceptions:

~~~~
>>> a = ImmObject('NonExistingClass')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pyosaf/utils/immom/object.py", 
line 63, in __init__
    raise
TypeError: exceptions must be old-style classes or derived from BaseException, 
not NoneType
~~~~


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to