diff options
-rw-r--r-- | routes/mapper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/mapper.py b/routes/mapper.py index bd48c4f..d37a011 100644 --- a/routes/mapper.py +++ b/routes/mapper.py @@ -393,7 +393,7 @@ class Mapper(SubMapperParent): def format_methods(r): if r.conditions: method = r.conditions.get('method', '') - return method if type(method) is str else ', '.join(method) + return type(method) is str and method or ', '.join(method) else: return '' |