fix: add missing init on python pkg key_value (#19428)

* fix: add missing init on python pkg key_value

* fix lint issues

* fix lint issues

(cherry picked from commit fa35109bf2)
This commit is contained in:
Daniel Vaz Gaspar
2022-03-30 12:46:42 +01:00
committed by Ville Brofeldt
parent 625555ac7e
commit 7aba89c486
8 changed files with 35 additions and 8 deletions

View File

@@ -53,6 +53,8 @@ class CreateExplorePermalinkCommand(BaseExplorePermalinkCommand):
value=value,
)
key = command.run()
if key.id is None:
raise ExplorePermalinkCreateFailedError("Unexpected missing key id")
return encode_permalink_key(key=key.id, salt=self.salt)
except SQLAlchemyError as ex:
logger.exception("Error running create command")