This commit is contained in:
Kovid Goyal 2016-07-20 00:09:41 +05:30
parent 1c389964cc
commit 38ae23cbab

View File

@ -286,6 +286,8 @@ class RecentUAs(Command):
def run(self, opts):
lines = self.get_list()[:10]
if not lines:
raise RuntimeError('Failed to download list of common user agents')
with open(self.UA_PATH, 'wb') as f:
f.write('\n'.join(lines).encode('ascii'))