diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-07-23 11:39:35 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-07-23 11:39:35 +0200 |
commit | 39a71a984c86efd78c2cf7b5ce69b7178149939d (patch) | |
tree | 4927223a26e549bdcaa119c17ecda609b48e64d2 /_plugins | |
parent | wkd: Include service keys (diff) | |
download | www-39a71a984c86efd78c2cf7b5ce69b7178149939d.tar.gz www-39a71a984c86efd78c2cf7b5ce69b7178149939d.tar.bz2 www-39a71a984c86efd78c2cf7b5ce69b7178149939d.zip |
wkd: Handle missing userinfo gracefully (for local testing)
Diffstat (limited to '_plugins')
-rw-r--r-- | _plugins/wkd.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/_plugins/wkd.rb b/_plugins/wkd.rb index 366a092..02b2402 100644 --- a/_plugins/wkd.rb +++ b/_plugins/wkd.rb @@ -11,6 +11,8 @@ module Gentoo WKD_DIR = '.well-known/openpgpkey/' def generate(site) + return if site.data['userinfo'].nil? + # WKD uses z-Base32; replace the alphabet since the standard # Base32 module supports that and the zBase32 modules are hard to get Base32.table = 'ybndrfg8ejkmcpqxot1uwisza345h769' |