Skip to content

Commit

Permalink
Make sure string representation of Fix is safe
Browse files Browse the repository at this point in the history
Some of the values could potentially end up as integers, which could cause issues with the + operator, so make sure to convert them to string.
  • Loading branch information
M4rtinK committed Jun 12, 2020
1 parent dbd558d commit 506a4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def __init__(self,
self.timestamp = timestamp

def __str__(self):
return 'mode:' + self.mode + 'lat,lon:' + self.position + 'elev:' + self.altitude
return 'mode:' + str(self.mode) + 'lat,lon:' + self.position + 'elev:' + str(self.altitude)

0 comments on commit 506a4f9

Please sign in to comment.