You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following stacktrace was shown when running against the repo ludwig-ai/ludwig (but it was triggered by a GitHub GraphQL error, it may happen with other repositories as it cannot be reproduced with that one exactly)
This is the Traceback:
Traceback (most recent call last):
File "/tmp/gh-workflow-auditor/main.py", line 60, in <module>
main()
File "/tmp/gh-workflow-auditor/main.py", line 58, in main
action_auditor.action_audit()
File "/tmp/gh-workflow-auditor/action_auditor.py", line 29, in action_audit
self.check_usernames(usernames)
File "/tmp/gh-workflow-auditor/action_auditor.py", line 22, in check_usernames
renamed_or_not = self.gh.stale_checker(username=username)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/gh-workflow-auditor/github_wrapper.py", line 118, in stale_checker
is_it_user = self.call_graphql(query=user_query)['data']['user']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/gh-workflow-auditor/github_wrapper.py", line 49, in call_graphql
logger.error(f"GitHub GraphQL Query failed: {message}")
^^^^^^
NameError: name 'logger' is not defined
When the class is initialized the logger of the object is defined and referenced with self.logger, except only for that one. Referencing the self logger should do the trick to properly log the error.
The text was updated successfully, but these errors were encountered:
Hi !
The following stacktrace was shown when running against the repo
ludwig-ai/ludwig
(but it was triggered by a GitHub GraphQL error, it may happen with other repositories as it cannot be reproduced with that one exactly)This is the Traceback:
I believe the error happens in https://github.com/TinderSec/gh-workflow-auditor/blob/main/github_wrapper.py#L49:
I believe that that line should be:
When the class is initialized the logger of the object is defined and referenced with self.logger, except only for that one. Referencing the self logger should do the trick to properly log the error.
The text was updated successfully, but these errors were encountered: