gophish / api-client-python

A Python API Client for Gophish
MIT License
45 stars 48 forks source link

Fixed AttributeErrors due to small errors #4

Closed martindube closed 7 years ago

martindube commented 7 years ago

I had the following error messages when attempting to save a list of campaigns to a json file.

AttributeError: 'TimelineEntry' object has no attribute 'as_dict'
AttributeError: 'float' object has no attribute 'as_dict'
AttributeError: 'int' object has no attribute 'as_dict'
jordan-wright commented 7 years ago

Good catch! Thanks for sending this over!

jordan-wright commented 7 years ago

I'll push a new version to PyPi tomorrow evening.