mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-08 21:18:00 +03:00
This commit is contained in:
parent
4a4c1a12d0
commit
6aa67c80a3
@ -51,7 +51,10 @@ def loadModulesUrls():
|
||||
for _, name, _ in pkgutil.iter_modules([pkgpath]):
|
||||
fullModName = '%s.%s.urls' % (modName, name)
|
||||
mod = __import__(fullModName, globals(), locals(), ['urlpatterns'], -1)
|
||||
patterns += mod.urlpatterns
|
||||
try:
|
||||
patterns += mod.urlpatterns
|
||||
except:
|
||||
logger.info( 'Module {0} has no url patterns'.format(mod))
|
||||
except Exception, e:
|
||||
logger.debug(e)
|
||||
pass
|
||||
|
@ -167,4 +167,3 @@ class TSRDPTransport(Transport):
|
||||
def getHtmlComponent(self, id, os, componentId):
|
||||
# We use helper to keep this clean
|
||||
return getHtmlComponent(self.__module__, componentId)
|
||||
|
Loading…
Reference in New Issue
Block a user