Skip to content

Commit 3898930

Browse files
authored
[services.py] fix possible exception in some distros caused by 14d2f62
1 parent 4b0d1ff commit 3898930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/controllers/models/services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ def getPicon(sname, pp=None, defaultpicon=True):
12011201
pp = PICON_PATH
12021202
if pp is not None:
12031203
if getPiconName is not None: # use distro own picon resolver
1204-
return sname and (p := piconLocator.getPiconName(sname)) is not None and p.replace(pp, PIC) or (DEFAULTPIC if defaultpicon else None)
1204+
return sname and (p := getPiconName(sname)) is not None and p.replace(pp, PIC) or (DEFAULTPIC if defaultpicon else None)
12051205

12061206
# remove URL part
12071207
if ("://" in sname) or ("%3a//" in sname) or ("%3A//" in sname):

0 commit comments

Comments
 (0)