summaryrefslogtreecommitdiff
path: root/macaroonbakery/checkers/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'macaroonbakery/checkers/utils.py')
-rw-r--r--macaroonbakery/checkers/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/macaroonbakery/checkers/utils.py b/macaroonbakery/checkers/utils.py
index f2e51b1..925e8c7 100644
--- a/macaroonbakery/checkers/utils.py
+++ b/macaroonbakery/checkers/utils.py
@@ -7,7 +7,7 @@ def condition_with_prefix(prefix, condition):
If the prefix is non-empty, a colon is used to separate them.
'''
- if prefix == '':
+ if prefix == '' or prefix is None:
return condition
return prefix + ':' + condition