From 2b4d142e041885422354cf3675a6cb29fb7a3a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Dub=C3=A9?= Date: Thu, 15 Feb 2018 13:38:09 -0500 Subject: [PATCH 1/2] Removed unicode from models.py --- gophish/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gophish/models.py b/gophish/models.py index 8a56edf..87b2297 100644 --- a/gophish/models.py +++ b/gophish/models.py @@ -22,7 +22,7 @@ def as_dict(self): if isinstance(val, datetime): val = val.isoformat() # Parse custom classes - elif val and not isinstance(val, (int, float, str, list, dict, unicode)): + elif val and not isinstance(val, (int, float, str, list, dict)): val = val.as_dict() # Parse lists of objects elif isinstance(val, list): From 7990484a61686933b085e315d98277d0c7de93d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Dub=C3=A9?= Date: Thu, 28 Jun 2018 11:35:54 -0400 Subject: [PATCH 2/2] Fixed typo #8 --- gophish/api/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gophish/api/api.py b/gophish/api/api.py index 201420a..8c39821 100644 --- a/gophish/api/api.py +++ b/gophish/api/api.py @@ -94,7 +94,7 @@ def put(self, resource): response = self.api.execute("PUT", endpoint, json=resource.as_json()) - if not respose.ok: + if not response.ok: return Error.parse(response.json()) return self._cls.parse(response.json())