smarter exception test
[wolnelektury.git] / src / wolnelektury / views.py
index 7573df5..c62c2e5 100644 (file)
@@ -187,4 +187,8 @@ def widget(request):
 
 
 def exception_test(request):
-    raise Exception('Exception test')
\ No newline at end of file
+    msg = request.GET.get('msg')
+    if msg:
+        raise Exception('Exception test: %s' % msg)
+    else:
+        raise Exception('Exception test')
\ No newline at end of file