Skip to content

Commit

Permalink
Update user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jan 31, 2020
1 parent 89d3482 commit 5638226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Buku v4.3
- Fix Firefox default profile detection
- Fix export to DB failing after search
- Fix broken prompt colors
- User agent updated

-------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion buku
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ COLORMAP = {k: '\x1b[%sm' % v for k, v in {
'x': '0', 'X': '1', 'y': '7', 'Y': '7;1', 'z': '2',
}.items()}

USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0'
USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0'
MYHEADERS = None # Default dictionary of headers
MYPROXY = None # Default proxy
TEXT_BROWSERS = ['elinks', 'links', 'links2', 'lynx', 'w3m', 'www-browser']
Expand Down

2 comments on commit 5638226

@jarun
Copy link
Owner Author

@jarun jarun commented on 5638226 Feb 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rachmadaniHaryono can you please take a look at the CI failure? Looks like some Flask dep is missing.

==================================== ERRORS ====================================
____________________ ERROR collecting tests/test_server.py _____________________
ImportError while importing test module '/root/Buku/tests/test_server.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.7/site-packages/_pytest/python.py:493: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/local/lib/python3.7/site-packages/py/_path/local.py:701: in pyimport
    __import__(modname)
/usr/local/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:143: in exec_module
    exec(co, module.__dict__)
tests/test_server.py:7: in <module>
    from bukuserver import server
bukuserver/server.py:17: in <module>
    from flask_reverse_proxy_fix.middleware import ReverseProxyPrefixFix
/usr/local/lib/python3.7/site-packages/flask_reverse_proxy_fix/middleware/__init__.py:3: in <module>
    from werkzeug.contrib.fixers import ProxyFix
E   ModuleNotFoundError: No module named 'werkzeug.contrib'
_____________________ ERROR collecting tests/test_views.py _____________________
ImportError while importing test module '/root/Buku/tests/test_views.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.7/site-packages/_pytest/python.py:493: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/local/lib/python3.7/site-packages/py/_path/local.py:701: in pyimport
    __import__(modname)
/usr/local/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:143: in exec_module
    exec(co, module.__dict__)
tests/test_views.py:8: in <module>
    from bukuserver import server
bukuserver/server.py:17: in <module>
    from flask_reverse_proxy_fix.middleware import ReverseProxyPrefixFix
/usr/local/lib/python3.7/site-packages/flask_reverse_proxy_fix/middleware/__init__.py:3: in <module>
    from werkzeug.contrib.fixers import ProxyFix
E   ModuleNotFoundError: No module named 'werkzeug.contrib'
=============================== warnings summary ===============================

@rachmadaniHaryono
Copy link
Collaborator

@rachmadaniHaryono rachmadaniHaryono commented on 5638226 Feb 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it caused by new werkzeug version Werkzeug-1.0.0. other project can be fixed by changing the import like this searx/searx@b8b1337

i can create pr to flask-reverse-proxy-fix and in the meantime we can put warning for anyone who use reverse proxy if this ModuleNotFoundError happened

e: antarctica/flask-reverse-proxy-fix#1

e2: pr not automatically showed up here, so here it is

#435

Please sign in to comment.