Skip to content

Commit 95b1b47

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c1e6879 commit 95b1b47

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

rusle/rusle_core.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ def rusle_core(input_dict: dict, ftep) -> None:
14771477
logging.info("Check Rusle parameters")
14781478

14791479
# Catch FTEP-S3 errors (S3 access instability most likely related to networking issues, timeouts, or rate limits)
1480-
try:
1480+
try:
14811481
create_tmp_dir(input_dict)
14821482
aoi_buffer(input_dict)
14831483
check_parameters(input_dict)
@@ -1517,12 +1517,18 @@ def rusle_core(input_dict: dict, ftep) -> None:
15171517
rusle_stats = compute_statistics(input_dict, a_path)
15181518

15191519
except RasterioIOError as e:
1520-
LOGGER.error("Could not open or read the raster. Check if your data is available at your path or try relaunching RUSLE now or later", exc_info=True)
1520+
LOGGER.error(
1521+
"Could not open or read the raster. Check if your data is available at your path or try relaunching RUSLE now or later",
1522+
exc_info=True,
1523+
)
15211524
print(str(e))
15221525
sys.exit(1)
15231526

15241527
except DataSourceError as e:
1525-
LOGGER.error("Could not open or read the vector file. Check if your data is available at your path or try relaunching RUSLE now or later", exc_info=True)
1528+
LOGGER.error(
1529+
"Could not open or read the vector file. Check if your data is available at your path or try relaunching RUSLE now or later",
1530+
exc_info=True,
1531+
)
15261532
print(str(e))
15271533
sys.exit(1)
15281534

0 commit comments

Comments
 (0)