Skip to content

Commit

Permalink
Don't fail if memorpy is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
alxchk committed May 23, 2017
1 parent c5e4fc6 commit bff5bda
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions Linux/lazagne/config/manageModules.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from lazagne.softwares.sysadmin.env_variable import Env_variable
from lazagne.softwares.sysadmin.shadow import Shadow
from lazagne.softwares.sysadmin.aws import Aws
from lazagne.softwares.sysadmin.ssh import Ssh
from lazagne.softwares.sysadmin.docker import Docker
# chats
from lazagne.softwares.chats.pidgin import Pidgin
Expand All @@ -24,8 +25,15 @@
from lazagne.softwares.databases.dbvis import DbVisualizer
from lazagne.softwares.databases.sqldeveloper import SQLDeveloper
# memory
from lazagne.softwares.memory.mimipy import Mimipy
from lazagne.softwares.memory.memorydump import MemoryDump
try:
from lazagne.softwares.memory.mimipy import Mimipy
except:
pass

try:
from lazagne.softwares.memory.memorydump import MemoryDump
except:
pass

def get_categories():
category = {
Expand All @@ -49,8 +57,6 @@ def get_modules():
Gnome(),
Jitsi(),
Mozilla(),
# MemoryDump(), # very long to execute
Mimipy(),
Opera(),
Pidgin(),
Shadow(),
Expand All @@ -63,4 +69,16 @@ def get_modules():
kde(),
libsecret()
]

try:
moduleNames.append(Mimipy())
except:
pass

# very long to execute
# try:
# moduleNames.append(MemoryDump())
# except:
# pass

return moduleNames

0 comments on commit bff5bda

Please sign in to comment.