Skip to content

Commit 378e8d6

Browse files
committed
make lint
1 parent e956640 commit 378e8d6

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

pyiceberg/catalog/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ def delete_files(io: FileIO, files_to_delete: set[str], file_type: str) -> None:
286286
try:
287287
io.delete(file)
288288
except OSError as exc:
289-
logger.warning(f"Failed to delete {file_type} file {file}", exc_info=exc if logger.isEnabledFor(logging.DEBUG) else None)
289+
logger.warning(
290+
f"Failed to delete {file_type} file {file}", exc_info=exc if logger.isEnabledFor(logging.DEBUG) else None
291+
)
290292

291293

292294
def delete_data_files(io: FileIO, manifests_to_delete: list[ManifestFile]) -> None:
@@ -306,7 +308,9 @@ def delete_data_files(io: FileIO, manifests_to_delete: list[ManifestFile]) -> No
306308
try:
307309
io.delete(path)
308310
except OSError as exc:
309-
logger.warning(f"Failed to delete data file {path}", exc_info=exc if logger.isEnabledFor(logging.DEBUG) else None)
311+
logger.warning(
312+
f"Failed to delete data file {path}", exc_info=exc if logger.isEnabledFor(logging.DEBUG) else None
313+
)
310314
deleted_files[path] = True
311315

312316

@@ -320,7 +324,9 @@ def _import_catalog(name: str, catalog_impl: str, properties: Properties) -> Cat
320324
class_ = getattr(module, class_name)
321325
return class_(name, **properties)
322326
except ModuleNotFoundError as exc:
323-
logger.warning(f"Could not initialize Catalog: {catalog_impl}", exc_info=exc if logger.isEnabledFor(logging.DEBUG) else None)
327+
logger.warning(
328+
f"Could not initialize Catalog: {catalog_impl}", exc_info=exc if logger.isEnabledFor(logging.DEBUG) else None
329+
)
324330
return None
325331

326332

pyiceberg/table/locations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ def _import_location_provider(
179179
class_ = getattr(module, class_name)
180180
return class_(table_location, table_properties)
181181
except ModuleNotFoundError as exc:
182-
logger.warning(f"Could not initialize LocationProvider: {location_provider_impl}", exc_info=exc if logger.isEnabledFor(logging.DEBUG) else None)
182+
logger.warning(
183+
f"Could not initialize LocationProvider: {location_provider_impl}",
184+
exc_info=exc if logger.isEnabledFor(logging.DEBUG) else None,
185+
)
183186
return None
184187

185188

0 commit comments

Comments
 (0)