Skip to content

Commit 756c2fa

Browse files
committed
chore: apply minor tweaks per GH copilot suggestion
see #222 (review)
1 parent a1f8961 commit 756c2fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ckanext/datapusher_plus/jobs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,19 +1248,19 @@ def _push_to_datastore(
12481248
if "dpp_suggestions" not in package:
12491249

12501250
logger.warning(
1251-
'Warning: "dpp_suggestions" field required to process Suggestion Formulae is not found in this package . Adding "dpp_suggestions" to package'
1251+
'Warning: "dpp_suggestions" field required to process Suggestion Formulae is not found in this package. Adding "dpp_suggestions" to package'
12521252
)
12531253

12541254
try:
12551255
package["dpp_suggestions"] = {}
12561256
dsu.patch_package(package)
1257-
logger.error(
1257+
logger.warning(
12581258
'"dpp_suggestions" field added to package'
12591259
)
12601260

12611261
except Exception as e:
12621262
logger.error(
1263-
'Error adding "dpp_suggestions" field {}'.format( e )
1263+
f'Error adding "dpp_suggestions" field {e}'
12641264
)
12651265
return
12661266
else:

0 commit comments

Comments
 (0)