Skip to content

Commit

Permalink
MB-6487: python 2.4 does not support finally
Browse files Browse the repository at this point in the history
Change-Id: Ib7061f4cda4be7feef4d19a2eb6d6d760fa3d7bc
Reviewed-on: http://review.couchbase.org/20356
Reviewed-by: Ronnie Sun <ronnie@couchbase.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information
steveyen authored and Peter Wansch committed Aug 30, 2012
1 parent cb34901 commit 18547b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pump_mbf.py
Expand Up @@ -76,11 +76,10 @@ def check(opts, spec):
'state': state,
'checkpoint_id': row[3]
}
except sqlite3.DatabaseError, e:
pass # A missing vbucket_states table is expected.
finally:
cur.close()
db.close()
except sqlite3.DatabaseError, e:
pass # A missing vbucket_states table is expected.

return 0, {'spec': spec,
'buckets':
Expand Down

0 comments on commit 18547b8

Please sign in to comment.