From 48b8d72946dfc1dea9205988dddc016cd2eaf526 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Thu, 12 Feb 2015 18:16:53 -0800 Subject: [PATCH] send Unknown as user agent if not supplied via --plugin argument --- wakatime/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wakatime/__init__.py b/wakatime/__init__.py index ec29e78..72dbcf7 100644 --- a/wakatime/__init__.py +++ b/wakatime/__init__.py @@ -256,6 +256,10 @@ def get_user_agent(plugin): user_agent=user_agent, plugin=u(plugin), ) + else: + user_agent = u('{user_agent} Unknown/0').format( + user_agent=user_agent, + ) return user_agent