diff options
author | nico <nico@magicbroccoli.de> | 2018-11-07 00:37:24 +0100 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2018-11-07 00:37:24 +0100 |
commit | d7fc664d3be4634a693a24fa98ff3f15d2c97c41 (patch) | |
tree | ed646ce57bc4992de4502fbeb0669fa5e48c6ae1 /common | |
parent | 0c313565f2b649366f7382dc1b3f28a3e80f4ffc (diff) |
* corrected CamelCase
* corrected logging.INFO to .info
* small changes to HandleError class
Diffstat (limited to 'common')
-rwxr-xr-x | common/misc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/misc.py b/common/misc.py index bbf9c55..1350a2a 100755 --- a/common/misc.py +++ b/common/misc.py @@ -57,13 +57,13 @@ class HandleError: """ def __init__(self, error, key, target): # init all necessary variables - self.error = error + self.text = error.text + self.condition = error.condition self.key = key self.target = target def report(self): # return the formatted result string to the user - condition = self.error.condition - text = "There was an error requesting %s's %s : %s" % (self.target, self.key, condition) + text = "%s, %s resulted in: %s" % (self.text, self.key, self.condition) return text |