Commit 684c93cb authored by Nathaniel Case's avatar Nathaniel Case

Work around missing Meliae

parent d7536560
......@@ -32,7 +32,10 @@ import threading
from os.path import join, abspath, dirname
from random import randrange
from meliae import loader
try:
from meliae import loader
except:
pass
from gi.repository import GLib, GObject, Pango, Gtk, WebKit
import pyrasite
......@@ -606,6 +609,9 @@ class PyrasiteWindow(Gtk.Window):
try:
objects = loader.load('/tmp/%d.objects' % proc.pid,
show_prog=False)
except NameError:
log.debug("Meliae not available, continuing...")
return
except:
log.debug("Falling back to slower meliae object dump loader")
objects = loader.load('/tmp/%d.objects' % proc.pid,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment