gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-bank] branch master updated: 'Warning' object used i


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: 'Warning' object used in checks MUST come from django.
Date: Mon, 20 Nov 2017 18:10:18 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 3c84eb2  'Warning' object used in checks MUST come from django.
3c84eb2 is described below

commit 3c84eb2922c2c8ef0b7a3cc431a15a3a52517379
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Nov 20 18:09:56 2017 +0100

    'Warning' object used in checks MUST come from django.
---
 talerbank/app/checks.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/talerbank/app/checks.py b/talerbank/app/checks.py
index 753c5ea..3b505bb 100644
--- a/talerbank/app/checks.py
+++ b/talerbank/app/checks.py
@@ -1,7 +1,6 @@
-from django.core.checks import register
+from django.core.checks import register, Warning
 from django.db.utils import OperationalError
 
-
 @register()
 def example_check(app_configs, **kwargs):
     errors = []
@@ -9,9 +8,8 @@ def example_check(app_configs, **kwargs):
         from .models import User
         User.objects.get(username='Bank')
     except User.DoesNotExist:
-        errors.append(
-            Warning("The bank user does not exist, run the \
-                    'provide_accounts' management command."))
+        errors.append(Warning("The bank user does not exist, run the \
+                              'provide_accounts' management command."))
     except OperationalError:
         errors.append(Warning("Presumably non existent database."))
     return errors

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]