]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix usage of SQLAlchemy Query.first() method
authorRoman Podolyaka <rpodolyaka@mirantis.com>
Wed, 8 May 2013 15:34:51 +0000 (18:34 +0300)
committerRoman Podolyaka <rpodolyaka@mirantis.com>
Wed, 8 May 2013 19:30:08 +0000 (22:30 +0300)
commit6d26dd57680ddcdfc3c31fbe2d7190e0f6d28d0d
tree053b529116b5454d15f2e335e966b269dda4efaf
parentf8f2a7f39ce6067e737ee6c47dfee8500d27d57d
Fix usage of SQLAlchemy Query.first() method

Query.first() doesn't raise the NoResultFound exception
if no result is found but rather returns None, so wrapping
of Query.first() call into a try/except NoResultFound block
is useless.

Fixes bug 1177842.

Change-Id: I0bd0e6d8299734b485dd1a1ac36bf6c295fd8932
quantum/plugins/nicira/nicira_qos_db.py