diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-10 18:37:57 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-10 18:37:57 +0200 | 
| commit | 2103f8280de679b622bbf95bb574402a70fab4c3 (patch) | |
| tree | ce15c5b7271273bf37cb7747d1c0255c45719504 | |
| parent | 35b006b5cd65ea4d2192c995e1e1770bd16867a2 (diff) | |
| download | Ishtar-2103f8280de679b622bbf95bb574402a70fab4c3.tar.bz2 Ishtar-2103f8280de679b622bbf95bb574402a70fab4c3.zip | |
Fix crash on file creation (fixes #1212)
| -rw-r--r-- | archaeological_operations/wizards.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/archaeological_operations/wizards.py b/archaeological_operations/wizards.py index 4205144e6..83bf3f21c 100644 --- a/archaeological_operations/wizards.py +++ b/archaeological_operations/wizards.py @@ -157,7 +157,7 @@ class OperationWizard(Wizard):                  except (ValueError, IndexError):                      continue                  keys.add(items[-1]) -            if max(numbers) - 1: +            if numbers and max(numbers) - 1:                  initial = [dict([(k, data[step+'-'+unicode(max(numbers)-1)+'-'+k])                                             for k in keys if k != 'parcel_number'])]              self.form_initialized = True | 
