Skip to content

Commit

Permalink
Resolve PyCharm warning: Service Class auth_object (#506)
Browse files Browse the repository at this point in the history
* Update CHANGELOG.md

* Define auth_object explicitly

* Update wordlist.txt
  • Loading branch information
jshcodes authored Jan 4, 2022
1 parent f286fad commit 5a3f9b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -602,4 +602,5 @@ GetBehaviorDetections
MessageCenter
yaleman
Fal
morcef
morcef
PyCharm
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
print(detects.token_fail_reason)
```

## Issues resolved
+ Fixed: Code hint warning in PyCharm for missing auth_object definition within _service_class.py.


# Version 0.8.11
## Added features and functionality
+ Added: FileVantage Service Class and all related endpoints.
Expand Down
2 changes: 1 addition & 1 deletion src/falconpy/_service_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def __init__(self: object, auth_object: object = None,
self.refreshable = False
self.token_fail_reason = None
self.token_status = None
self.auth_object = None
client_id = kwargs.get("client_id", None)
client_secret = kwargs.get("client_secret", None)
if client_id and client_secret and not creds:
Expand Down Expand Up @@ -161,7 +162,6 @@ def __init__(self: object, auth_object: object = None,
self.headers = {}
self.refreshable = True
else:
self.auth_object = None
self.headers = {"Authorization": f"Bearer {access_token}"}

self.proxy = proxy
Expand Down

0 comments on commit 5a3f9b2

Please sign in to comment.