Skip to content

Commit

Permalink
Update browsepy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor committed Sep 5, 2014
1 parent bc71148 commit eb5d47a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion browsepy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import sys
import json
import apps
import warnings

def reload_all(mod, name):
reload(mod)
Expand Down Expand Up @@ -34,7 +35,11 @@ def reload_all(mod, name):
apps = {}
_apps = __import__("apps", fromlist=[str(i) for i in appnames.keys()])
for name, exts in appnames.items():
apps[getattr(_apps, name).App] = exts
app = getattr(_apps, name, None)
if not app:
warnings.warn("App {} not found".format(name))
continue
apps[app.App] = exts

class Delegate(object):
def __init__(self):
Expand Down

0 comments on commit eb5d47a

Please sign in to comment.