mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +00:00
package: Proper string casting of PackageException
This commit is contained in:
parent
1e8cc6f290
commit
20a97488d9
@ -46,6 +46,11 @@ class PackageException(Exception):
|
||||
self.error_string = error_string
|
||||
self.error_details = error_details
|
||||
|
||||
def __str__(self):
|
||||
"""Return the strin representation of the exception."""
|
||||
return 'PackageException(error_string="{0}", error_details="{1}")' \
|
||||
.format(self.error_string, self.error_details)
|
||||
|
||||
|
||||
class Transaction(object):
|
||||
"""Information about an ongoing transaction."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user