Skip to content

Commit

Permalink
Merge 1c59b79 into 4592862
Browse files Browse the repository at this point in the history
  • Loading branch information
wawaka committed May 20, 2019
2 parents 4592862 + 1c59b79 commit 434740a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clickhouse_driver/clientinfo.py
Expand Up @@ -36,7 +36,10 @@ class QueryKind(object):
def __init__(self, client_name):
self.query_kind = ClientInfo.QueryKind.NO_QUERY

self.os_user = getpass.getuser()
try:
self.os_user = getpass.getuser()
except KeyError:
self.os_user = ''
self.client_hostname = socket.gethostname()
self.client_name = client_name

Expand Down

0 comments on commit 434740a

Please sign in to comment.