blob: 0d25fb610137df1af973e65969d7bcf149e61f45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- a/mugshot/MugshotWindow.py 2018-04-12 00:23:21.000000000 +0200
+++ b/mugshot/MugshotWindow.py 2018-06-22 22:27:05.515588012 +0200
@@ -257,10 +257,11 @@
logger.debug('Found profile image: %s' % str(image))
if os.path.isfile(face):
- if os.path.samefile(image, face):
- self.updated_image = face
- else:
- self.updated_image = None
+ if os.path.exists(image):
+ if os.path.samefile(image, face):
+ self.updated_image = face
+ else:
+ self.updated_image = None
self.set_user_image(face)
elif os.path.isfile(image):
self.updated_image = image
|