Skip to content

Commit

Permalink
Fix return in finally (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-reiss authored Nov 4, 2024
1 parent cc3b74b commit 4183cf0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mmengine/logging/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,7 @@ def _get_host_info() -> str:
host = f'{getuser()}@{gethostname()}'
except Exception as e:
warnings.warn(f'Host or user not found: {str(e)}')
finally:
return host
return host


def _get_logging_file_handlers() -> Dict:
Expand Down

0 comments on commit 4183cf0

Please sign in to comment.