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

Importing requests module #168

Merged
merged 1 commit into from
Jun 24, 2020
Merged

Importing requests module #168

merged 1 commit into from
Jun 24, 2020

Conversation

gaglimax
Copy link

Importing requests module to fix the error :

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/thehive4py/auth.py", line 24, in __call__
    req.headers['Authorization'] = requests.auth._basic_auth_str(self.username, self.password)
NameError: name 'requests' is not defined

Importing requests module to fix the error :

  Traceback (most recent call last):
    File "/usr/local/lib/python3.7/site-packages/thehive4py/auth.py", line 24, in __call__
      req.headers['Authorization'] = requests.auth._basic_auth_str(self.username, self.password)
  NameError: name 'requests' is not defined
@nadouani
Copy link
Contributor

Hello, I'm going to fix this because in fact I've made something wrong, not just here but on the constructor of TheHiveApi.

@nadouani nadouani added this to the 1.7.2 milestone Jun 24, 2020
@gaglimax
Copy link
Author

Sounds great thanks !

@nadouani nadouani merged commit f0e1777 into TheHive-Project:1.x Jun 24, 2020
@nadouani
Copy link
Contributor

@gaglimax I made a 1.7.2 release. Can you please check it? Thanks

@gaglimax
Copy link
Author

Yes it works fine now 👍
Thanks a lot @nadouani !

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

Successfully merging this pull request may close these issues.

2 participants