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 | 219cb5b1308c2e3ac5f8de98993de2660b309a30 (patch) | |
| tree | ce15c5b7271273bf37cb7747d1c0255c45719504 | |
| parent | 23dbc0e1e3d38e338012cf7b3a1b4f84283b457d (diff) | |
| download | Ishtar-219cb5b1308c2e3ac5f8de98993de2660b309a30.tar.bz2 Ishtar-219cb5b1308c2e3ac5f8de98993de2660b309a30.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 |
