aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/Dawn/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py
index f2336e33..f6eae147 100644
--- a/python/Dawn/views.py
+++ b/python/Dawn/views.py
@@ -215,7 +215,7 @@ def edit_counterparty(cpcode):
if not cpcode:
session.add(cp)
instructions = cp.instructions
- if instructions.filename == '':
+ if instructions is None or instructions.filename == '':
cp.instructions = old_instructions
else:
cp.instructions = cp.name + '.pdf'