code formatting: black --skip-string-normalization --line-length 100

This commit is contained in:
Hans-Christoph Steiner 2021-03-18 15:26:42 +01:00
parent 7f458f8f8c
commit 08cde5c2e6
5 changed files with 21 additions and 20 deletions

View file

@ -1,5 +1,4 @@
class FDroidException(Exception):
def __init__(self, value=None, detail=None):
self.value = value
self.detail = detail
@ -22,12 +21,14 @@ class FDroidException(Exception):
else:
ret = str(self.value)
if self.detail:
ret += "\n==== detail begin ====\n%s\n==== detail end ====" % ''.join(self.detail).strip()
ret += (
"\n==== detail begin ====\n%s\n==== detail end ===="
% ''.join(self.detail).strip()
)
return ret
class MetaDataException(Exception):
def __init__(self, value):
self.value = value