fixed code quality for pylint, flake8 or codestyle

This commit is contained in:
navjot 2020-04-30 17:19:48 +05:30
parent a03d2cce17
commit 0568fd87f8
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C

View File

@ -2896,7 +2896,7 @@ def avatarImageFirstLetter(letter_string):
img_latter = letter_string[0]
else:
img_latter = '!'
except ValueError as e:
except ValueError:
img_latter = '!'
return img_latter if img_latter else '!'
@ -3085,6 +3085,7 @@ class RandomBoxlayout(BoxLayout):
def esc_markup(msg):
"""this method is for replacing some property"""
return (msg.replace('&', '&')
.replace('[', '&bl;')
.replace(']', '&br;'))