Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NoneType' object has no attribute 'read' #2

Closed
jadiaz opened this issue Mar 27, 2018 · 2 comments
Closed

'NoneType' object has no attribute 'read' #2

jadiaz opened this issue Mar 27, 2018 · 2 comments

Comments

@jadiaz
Copy link

jadiaz commented Mar 27, 2018

Starting debug for 'NpmSearch'

[2018-03-26 21:02:16][ERROR: input.scriptfilter] Code 1: 21:02:16 workflow.py:2249 DEBUG    workflow version: 1.0.2
21:02:16 workflow.py:2462 DEBUG    update_data: None
21:02:16 workflow.py:2267 ERROR    'NoneType' object has no attribute 'read'
Traceback (most recent call last):
  File "/Users/racan/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.32269DE4-9B2C-4C9A-9A6D-92B6E98E2ED3/workflow/workflow.py", line 2260, in run
    func(self)
  File "npm_workflow.py", line 63, in main
    data = wf.cached_data(query, functools.partial(queryPackage, query), max_age=MAX_AGE)
  File "/Users/racan/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.32269DE4-9B2C-4C9A-9A6D-92B6E98E2ED3/workflow/workflow.py", line 1890, in cached_data
    data = data_func()
  File "npm_workflow.py", line 50, in queryPackage
    return web.get(url).json()
  File "/Users/racan/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.32269DE4-9B2C-4C9A-9A6D-92B6E98E2ED3/workflow/web.py", line 271, in json
    return json.loads(self.content, self.encoding or 'utf-8')
  File "/Users/racan/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.32269DE4-9B2C-4C9A-9A6D-92B6E98E2ED3/workflow/web.py", line 302, in content
    self._content = self.raw.read()
AttributeError: 'NoneType' object has no attribute 'read'
21:02:16 workflow.py:2290 DEBUG    workflow finished in 0.379 seconds
@yihou
Copy link

yihou commented Apr 22, 2018

Met the same issue

@ycjcl868
Copy link
Owner

ycjcl868 commented Aug 9, 2018

@jadiaz @yihou it works again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants