Skip to content

Commit

Permalink
decode platform.platform() as ascii, ignore non-ascii chars
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed Oct 13, 2015
1 parent 5a06740 commit f831b45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions obspy/fdsn/header.py
Expand Up @@ -53,9 +53,9 @@ def __init__(self, value, server_info=None):
FDSNWS = ("dataselect", "event", "station")

# The default User Agent that will be sent with every request.
DEFAULT_USER_AGENT = "ObsPy %s (%s, Python %s)" % (__version__,
platform.platform(),
platform.python_version())
DEFAULT_USER_AGENT = "ObsPy %s (%s, Python %s)" % (
__version__, platform.platform().decode("ascii", errors="ignore"),
platform.python_version())


# The default parameters. Different services can choose to add more. It always
Expand Down

0 comments on commit f831b45

Please sign in to comment.