summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-22 09:41:37 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-22 10:26:40 -0500
commita6cf86b53a4815a6c9c4be35ca0b6a7e98d8b240 (patch)
treee9c873063ca96b7834bfae5f8bebb99b512b97c3 /gpsfake
parent9619c79078f2fffca5a1630ada5c878c26deab44 (diff)
downloadgpsd-a6cf86b53a4815a6c9c4be35ca0b6a7e98d8b240.tar.gz
gpsfake: pylint cleanup. Regression tests (using gpsfake) pass.
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsfake b/gpsfake
index 3abcf639..7572c3b0 100755
--- a/gpsfake
+++ b/gpsfake
@@ -164,7 +164,7 @@ if __name__ == '__main__':
try:
pty.openpty()
- except Exception:
+ except (AttributeError, OSError):
print >>sys.stderr, "gpsfake: ptys not available, falling back to UDP."
udp = True