mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +02:00
handle exceptions that send a tuple for the error message
Running `fdroid verify` I was seeing FDroidExceptions from verify.py:98 that had a tuple rather than a string. Traceback (most recent call last): File "/home/hans/code/fdroid/server/fdroid", line 152, in <module> main() File "/home/hans/code/fdroid/server/fdroid", line 128, in main mod.main() File "/home/hans/code/fdroid/server/fdroidserver/verify.py", line 98, in main logging.info("...NOT verified - {0}".format(e)) File "/home/hans/code/fdroid/server/fdroidserver/exception.py", line 22, in __str__ ret += "\n==== detail begin ====\n%s\n==== detail end ====" % ''.join(self.detail).strip() TypeError: sequence item 1: expected str instance, HTTPError found
This commit is contained in:
parent
53ce81179c
commit
a4c4a16ed9
@ -19,7 +19,7 @@ class FDroidException(Exception):
|
||||
def __str__(self):
|
||||
ret = self.value
|
||||
if self.detail:
|
||||
ret += "\n==== detail begin ====\n%s\n==== detail end ====" % self.detail.strip()
|
||||
ret += "\n==== detail begin ====\n%s\n==== detail end ====" % ''.join(self.detail).strip()
|
||||
return ret
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user