damned-lies r1390 - in trunk: . vertimus
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1390 - in trunk: . vertimus
- Date: Sun, 25 Jan 2009 10:22:22 +0000 (UTC)
Author: stephaner
Date: Sun Jan 25 10:22:22 2009
New Revision: 1390
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1390&view=rev
Log:
2009-01-25 StÃphane Raimbault <stephane raimbault gmail com>
* vertimus/models.py: Removed useless try/except.
Modified:
trunk/ChangeLog
trunk/vertimus/models.py
Modified: trunk/vertimus/models.py
==============================================================================
--- trunk/vertimus/models.py (original)
+++ trunk/vertimus/models.py Sun Jan 25 10:22:22 2009
@@ -660,22 +660,19 @@
def apply(self, state, person, comment=None, file=None):
self.save_action_db(state, person, comment, file)
- try:
- # Exclude WC because this action is a noop on State
- actions_db = ActionDb.objects.filter(state_db__id=state._state_db.id).exclude(
- name='WC').order_by('-id')
- i = 0
- while (i < len(actions_db)):
- if actions_db[i].name == 'UNDO':
- # Skip Undo and the associated action
- i = i + 2
- else:
- # Found
- action = actions_db[i].get_action()
- return action._new_state()
- return StateNone()
- except:
- return StateNone()
+ # Exclude WC because this action is a noop on State
+ actions_db = ActionDb.objects.filter(state_db__id=state._state_db.id).exclude(
+ name='WC').order_by('-id')
+ i = 0
+ while (i < len(actions_db)):
+ if actions_db[i].name == 'UNDO':
+ # Skip Undo and the associated action
+ i = i + 2
+ else:
+ # Found
+ action = actions_db[i].get_action()
+ return action._new_state()
+ return StateNone()
def update_uploaded_files(sender, **kwargs):
""" Callback to handle pot_file_changed signal """
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]