Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim-plugins
Commits
caf0b4e0
Commit
caf0b4e0
authored
Mar 06, 2017
by
Philipp Hörist
Browse files
[plugin_installer] Replace deprecated warn()
parent
623a3767
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugin_installer/plugin_installer.py
View file @
caf0b4e0
...
...
@@ -268,7 +268,7 @@ class PluginInstaller(GajimPlugin):
plugins
=
gajim
.
plugin_manager
.
scan_dir_for_plugins
(
plugin_dir
,
package
=
True
)
if
not
plugins
:
log
.
warn
(
'Loading Plugin failed'
)
log
.
warn
ing
(
'Loading Plugin failed'
)
continue
gajim
.
plugin_manager
.
add_plugin
(
plugins
[
0
])
plugin
=
gajim
.
plugin_manager
.
plugins
[
-
1
]
...
...
@@ -395,12 +395,12 @@ class DownloadAsync(threading.Thread):
config
.
read_file
(
io
.
TextIOWrapper
(
conf_file
,
encoding
=
'utf-8'
))
conf_file
.
close
()
if
not
config
.
has_section
(
'info'
):
log
.
warn
(
'Plugin is missing INFO section in manifest.ini. '
log
.
warn
ing
(
'Plugin is missing INFO section in manifest.ini. '
'Plugin not loaded.'
)
continue
opts
=
config
.
options
(
'info'
)
if
not
set
(
MANDATORY_FIELDS
).
issubset
(
opts
):
log
.
warn
(
'Plugin is missing mandatory fields in manifest.ini. '
log
.
warn
ing
(
'Plugin is missing mandatory fields in manifest.ini. '
'Plugin not loaded.'
)
continue
# Add icon and remote dir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment