From e66c94b50129b52142fdf422efbd540435fbadd5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 24 2015 08:21:08 +0000 Subject: Fix the branches endpoint This commit fixes the branches endpoint by instantiating the args variable so that passing it to json.dump() works in all cases --- diff --git a/mdapi/__init__.py b/mdapi/__init__.py index 851bb71..19777df 100644 --- a/mdapi/__init__.py +++ b/mdapi/__init__.py @@ -220,6 +220,7 @@ def list_branches(request): if filename.startswith('mdapi') and filename.endswith('.sqlite') ])) + args = {} if pretty: args = dict(sort_keys=True, indent=4, separators=(',', ': '))