fixed issue with null large object id for open dataset

pull/157/head
Chris Veilleux 2019-05-22 20:05:47 -05:00
parent dc365446f5
commit f166f62d76
1 changed files with 6 additions and 2 deletions

View File

@ -137,5 +137,9 @@ class AgreementRepository(object):
return agreement
def _get_agreement_content(self, content_id):
large_object = self.db.lobject(content_id, 'r')
return large_object.read()
content = None
if content_id is not None:
large_object = self.db.lobject(content_id, 'r')
content = large_object.read()
return content