Skip to content

Commit 923af21

Browse files
committed
Fix lint error
1 parent b3db261 commit 923af21

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

google/api_core/_python_version_support.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
import datetime
1818
import enum
1919
import logging
20-
import warnings
2120
import sys
2221
import textwrap
23-
from typing import Any, List, NamedTuple, Optional, Dict, Tuple
24-
22+
import warnings
23+
from typing import Any, Dict, List, NamedTuple, Optional, Tuple
2524

2625
_LOGGER = logging.getLogger(__name__)
2726

@@ -173,7 +172,11 @@ def _get_pypi_package_name(module_name):
173172
# The value is a list of distribution names, take the first one
174173
return module_to_distributions[module_name][0]
175174
except Exception as e:
176-
_LOGGER.info(f"An error occurred while determining PyPI package name for {module_name}: {e}")
175+
_LOGGER.info(
176+
"An error occurred while determining PyPI package name for %s: %s",
177+
module_name,
178+
e,
179+
)
177180

178181
return None
179182

0 commit comments

Comments
 (0)