Skip to content

Commit 3661726

Browse files
authored
Fixed AttributeError when displaying plugin list. (#324)
* Fixed AttributeError when displaying plugin list. * Changed to check the classinfo.
1 parent 97b1bb2 commit 3661726

File tree

1 file changed

+3
-1
lines changed
  • addons/source-python/packages/source-python/plugins

1 file changed

+3
-1
lines changed

Diff for: addons/source-python/packages/source-python/plugins/command.py

100644100755
+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
)
1313
# Core
1414
from core import AutoUnload
15+
# Cvars
16+
from cvars.public import PublicConVar
1517
# Hooks
1618
from hooks.exceptions import except_hooks
1719
# Paths
@@ -246,7 +248,7 @@ def print_plugins(self):
246248
for permission, description in info.permissions:
247249
message += ' {}:'.format(permission).ljust(30) + description + '\n'
248250

249-
if info.public_convar is not None:
251+
if isinstance(info.public_convar, PublicConVar):
250252
message += ' public convar: {}\n'.format(info.public_convar.name)
251253

252254
for attr in info.display_in_listing:

0 commit comments

Comments
 (0)