Skip to content

Commit

Permalink
No raise from in Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Holiverh committed Sep 10, 2017
1 parent 90a34e7 commit 886ba64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion valve/source/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import socket
import warnings

import six


class NoResponseError(Exception):
"""Raised when a server querier doesn't receive a response."""
Expand Down Expand Up @@ -120,7 +122,7 @@ def get_response(self):
try:
data = ready[0][0].recv(1400)
except socket.error as exc:
raise NoResponseError(exc) from exc
six.raise_from(NoResponseError(exc))
return data

del _check_open

0 comments on commit 886ba64

Please sign in to comment.