send Unknown as user agent if not supplied via --plugin argument
This commit is contained in:
parent
5986a5634d
commit
48b8d72946
1 changed files with 4 additions and 0 deletions
|
@ -256,6 +256,10 @@ def get_user_agent(plugin):
|
||||||
user_agent=user_agent,
|
user_agent=user_agent,
|
||||||
plugin=u(plugin),
|
plugin=u(plugin),
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
user_agent = u('{user_agent} Unknown/0').format(
|
||||||
|
user_agent=user_agent,
|
||||||
|
)
|
||||||
return user_agent
|
return user_agent
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue