Change exception class from monascaclient

monascaclient was recently migrated to
use 'osc' library. Due to that, exception
classes has been changed. This commit adjusts
the exception class to recently released
monascaclient==1.7.0

Change-Id: I9f8393b9980d13fca818a64bdbd44da3a3e461f2
This commit is contained in:
Tomasz Trębski 2017-08-02 15:01:50 +02:00 committed by Rico Lin
parent 9b6b65b3d1
commit f1c0434d70

@ -46,7 +46,7 @@ class MonascaClientPlugin(client_plugin.ClientPlugin):
return isinstance(ex, monasca_exc.NotFound)
def is_un_processable(self, ex):
return isinstance(ex, monasca_exc.HTTPUnProcessable)
return isinstance(ex, monasca_exc.UnprocessableEntity)
def get_notification(self, notification):
try: