X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..040285e94b385dd57a003a4fe5b693c299fe921b:/src/toolbar/admin.py diff --git a/src/toolbar/admin.py b/src/toolbar/admin.py index 654480ca..9d3c68d9 100644 --- a/src/toolbar/admin.py +++ b/src/toolbar/admin.py @@ -15,7 +15,7 @@ class ButtonAdminForm(forms.ModelForm): value = self.cleaned_data['params'] try: return json.dumps(json.loads(value)) - except ValueError, e: + except ValueError as e: raise forms.ValidationError(e)