Removes call of str() function to avoid mixing bytes/string

This commit is contained in:
Josue Ortega
2017-05-05 12:57:39 -06:00
parent 5f6435d7b9
commit ed5419eff8

View File

@@ -336,7 +336,7 @@ class Page(object):
except ProgramError as e:
_logger.exception(e)
self.term.show_notification(
'Failed to copy {} to clipboard, {}'.format(url, str(e)))
'Failed to copy {} to clipboard, {}'.format(url, e)
@PageController.register(Command('COPY_SUBMISSION_URL'))
def copy_post_permalink(self):
@@ -352,7 +352,7 @@ class Page(object):
except ProgramError as e:
_logger.exception(e)
self.term.show_notification(
'Failed to copy {} to clipboard, {}'.format(url, str(e)))
'Failed to copy {} to clipboard, {}'.format(url, e)
def clear_input_queue(self):
"""