diff --git a/parsons/phone2action/p2a.py b/parsons/phone2action/p2a.py index 7c99d60218..6411f14593 100644 --- a/parsons/phone2action/p2a.py +++ b/parsons/phone2action/p2a.py @@ -155,9 +155,10 @@ def get_campaigns(self, state=None, zip=None, include_generic=False, include_pri } tbl = Table(self.client.get_request('campaigns', params=args)) - tbl.unpack_dict('updated_at') - if include_content: - tbl.unpack_dict('content') + if tbl: + tbl.unpack_dict('updated_at') + if include_content: + tbl.unpack_dict('content') return tbl