Skip to content

import in hooks definde in env/envfile doesn't work #33

Description

@bmlynarczyk-lingaro

Windows 10 Pro/19042.928
Sublime Text 4/Build 4102

import in hooks defined in env/envfile doesn't work
request:

###env
import json

class TokenAuth:

    def __call__(self, r, stream, cert, timeout, verify, proxies):
        json.loads('{"a":"a"}')
###env

requests.post('https://wp.pl', hooks={'response': TokenAuth()})

console output:

error: requests.post('https://wp.pl', hooks={'response': TokenAuth()})
Other Error: 'NoneType' object has no attribute 'loads'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions