#14 Error when used with -C or --nocolor option

Closed
opened 8 years ago by jorgesumle · 0 comments

ducker --np -C --debug hi > out.txt
[DEBUG] Version 1.1.0
[DEBUG] Connecting to new host duckduckgo.com
[DEBUG] Fetching URL /html/?ie=UTF-8&k1=-1&kl=None&num=8&oe=UTF-8&q=hi&start=0
[DEBUG] Response body written to '/tmp/Ducker-response-edo435gt'.
Traceback (most recent call last):
  File "/usr/local/bin/ducker", line 11, in 

load_entry_point('ducker==1.1.0', 'console_scripts', 'ducker')()

File "/usr/local/lib/python3.5/dist-packages/ducker/init.py", line 24, in main

make_searches()

File "/usr/local/lib/python3.5/dist-packages/ducker/ducker.py", line 1571, in make_searches

repl(args)

File "/usr/local/lib/python3.5/dist-packages/ducker/ducker.py", line 1543, in repl

repl.display_results(prelude='', json_output=opts.json)

File "/usr/local/lib/python3.5/dist-packages/ducker/ducker.py", line 987, in enforced_method

method(self, *args, **kwargs)

File "/usr/local/lib/python3.5/dist-packages/ducker/ducker.py", line 1118, in display_results

print(colors.index + str(index) + colors.reset, end='')

AttributeError: 'NoneType' object has no attribute 'index'

<samp><pre>ducker --np -C --debug hi > out.txt [DEBUG] Version 1.1.0 [DEBUG] Connecting to new host duckduckgo.com [DEBUG] Fetching URL /html/?ie=UTF-8&k1=-1&kl=None&num=8&oe=UTF-8&q=hi&start=0 [DEBUG] Response body written to '/tmp/Ducker-response-edo435gt'. Traceback (most recent call last): File "/usr/local/bin/ducker", line 11, in <module> load_entry_point('ducker==1.1.0', 'console_scripts', 'ducker')() File "/usr/local/lib/python3.5/dist-packages/ducker/__init__.py", line 24, in main make_searches() File "/usr/local/lib/python3.5/dist-packages/ducker/ducker.py", line 1571, in make_searches repl(args) File "/usr/local/lib/python3.5/dist-packages/ducker/ducker.py", line 1543, in repl repl.display_results(prelude='', json_output=opts.json) File "/usr/local/lib/python3.5/dist-packages/ducker/ducker.py", line 987, in enforced_method method(self, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/ducker/ducker.py", line 1118, in display_results print(colors.index + str(index) + colors.reset, end='') AttributeError: 'NoneType' object has no attribute 'index'</samp></pre>
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.