kopia lustrzana https://github.com/piku/piku
Remove bare exception (linting fix).
rodzic
ede54d9563
commit
2dbc5d0233
2
piku.py
2
piku.py
|
|
@ -1390,7 +1390,7 @@ def _get_plugin_commands(path):
|
||||||
if isdir(module_path):
|
if isdir(module_path):
|
||||||
try:
|
try:
|
||||||
module = import_module(item)
|
module = import_module(item)
|
||||||
except:
|
except Exception:
|
||||||
module = None
|
module = None
|
||||||
if hasattr(module, 'cli_commands'):
|
if hasattr(module, 'cli_commands'):
|
||||||
cli_commands.append(module.cli_commands())
|
cli_commands.append(module.cli_commands())
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue