summaryrefslogtreecommitdiff
path: root/src/bcdd
diff options
context:
space:
mode:
Diffstat (limited to 'src/bcdd')
-rw-r--r--src/bcdd/PBNBoard.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bcdd/PBNBoard.py b/src/bcdd/PBNBoard.py
index e76252d..eb7ad2d 100644
--- a/src/bcdd/PBNBoard.py
+++ b/src/bcdd/PBNBoard.py
@@ -40,10 +40,12 @@ class PBNBoard(object):
return True
return False
- def get_field(self, key):
+ def get_field(self, key, default=None):
for field in self.fields:
if key == field.key:
return field.value
+ if default is not None:
+ return default
raise FieldNotFoundException(key + ' field not found')
def delete_field(self, key):