Skip to content

Commit

Permalink
cmp user_id first
Browse files Browse the repository at this point in the history
  • Loading branch information
malhotra5 committed Feb 8, 2025
1 parent dda8ecd commit 79bc289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openhands/runtime/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ async def _handle_action(self, event: Action) -> None:
assert event.timeout is not None
try:
if isinstance(event, CmdRunAction):
if '$GITHUB_TOKEN' in event.command and self.user_id:
if self.user_id and '$GITHUB_TOKEN' in event.command:
gh_client = GithubServiceImpl(user_id=self.user_id)
token = await gh_client.get_latest_token()
if token:
Expand Down

0 comments on commit 79bc289

Please sign in to comment.