update usps (#9540)

* update usps

* fix syntax issue
This commit is contained in:
happyleavesaoc authored and Paulus Schoutsen committed 2017-09-22 22:01:56 -07:00
1 parent a3a73b418a
commit 7da8cb225f
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ class USPSCamera(Camera):
def model(self):
"""Return date of mail as model."""
try:
return 'Date: {}'.format(self._usps.mail[0]['date'])
return 'Date: {}'.format(str(self._usps.mail[0]['date']))
except IndexError:
return None