Skip to content

Commit

Permalink
Merge pull request #51 from opengisch/fix_logs
Browse files Browse the repository at this point in the history
Fix error and logging messages
  • Loading branch information
suricactus authored Jul 21, 2023
2 parents a9c0761 + f599ce3 commit 08cd8c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,11 @@ def get_pk_attr_name(self) -> str:

if "," in pk_attr_name:
raise UnsupportedPrimaryKeyError(
'Comma in field name "{pk_attribute_name}" is not allowed!'
f'Comma in field name "{pk_attr_name}" is not allowed!'
)

logger.info(
f'Layer "{self.layer.name()}" has attribute "{pk_attr_name}" as a primary key.'
f'Layer "{self.layer.name()}" will use attribute "{pk_attr_name}" as a primary key.'
)

return pk_attr_name
Expand Down

0 comments on commit 08cd8c1

Please sign in to comment.