send Unknown as user agent if not supplied via --plugin argument

This commit is contained in:
Alan Hamlett 2015-02-12 18:16:53 -08:00
parent 5986a5634d
commit 48b8d72946

View file

@ -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