mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix post-merge lint issues
This commit is contained in:
@@ -115,6 +115,7 @@ LOGGING_CONFIG_DEFAULT = {
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def resolve_path(path, root):
|
||||
"""If 'path' is relative make absolute by prepending 'root'"""
|
||||
if not os.path.isabs(path):
|
||||
|
||||
@@ -207,7 +207,7 @@ class JobConfiguration(object, ConfiguresHandlers):
|
||||
# Determine the default handler(s)
|
||||
try:
|
||||
self.default_handler_id = self._get_default(self.app.config, handlers_conf, list(self.handlers.keys()))
|
||||
except:
|
||||
except Exception:
|
||||
log.info('No default handler specified in job config, will check for job handlers managed by application stack')
|
||||
if ((self.default_handler_id is None
|
||||
or (len(self.handlers) == 1 and self.app.config.server_name.startswith(self.handlers.keys()[0])))
|
||||
|
||||
@@ -3,7 +3,6 @@ Code to support database helper scripts (create_db.py, manage_db.py, etc...).
|
||||
"""
|
||||
import logging
|
||||
|
||||
from galaxy.util import listify
|
||||
from galaxy.util.path import get_ext
|
||||
from galaxy.util.properties import find_config_file, load_app_properties
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ import yaml
|
||||
from six import iteritems, string_types
|
||||
from six.moves.configparser import ConfigParser
|
||||
|
||||
from galaxy.util import listify
|
||||
from galaxy.util.path import has_ext, extensions, joinext
|
||||
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ class UWSGIFarmMessageTransport(ApplicationStackTransport):
|
||||
self.running = False
|
||||
else:
|
||||
self.dispatcher.dispatch(msg)
|
||||
except:
|
||||
except Exception:
|
||||
log.exception('Exception in mule message handling')
|
||||
finally:
|
||||
self.__unlock(lock)
|
||||
|
||||
@@ -3,13 +3,11 @@ Provides factory methods to assemble the Galaxy web application
|
||||
"""
|
||||
import atexit
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import threading
|
||||
import traceback
|
||||
|
||||
from paste import httpexceptions
|
||||
from six.moves import configparser
|
||||
|
||||
import galaxy.app
|
||||
import galaxy.datatypes.registry
|
||||
|
||||
@@ -200,7 +200,6 @@ class GalaxyConfigBuilder(object):
|
||||
config_file,
|
||||
dict(__file__=config_file, here=os.path.dirname(config_file))
|
||||
)
|
||||
root = logging.getLogger()
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
@@ -11,7 +11,6 @@ sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pa
|
||||
from galaxy.script import main_factory
|
||||
from galaxy.util.path import get_ext
|
||||
from galaxy.util.properties import load_app_properties, nice_config_parser
|
||||
from galaxy.web.stack import get_app_kwds
|
||||
|
||||
|
||||
DESCRIPTION = "Script to determine uWSGI command line arguments"
|
||||
|
||||
@@ -11,7 +11,6 @@ from galaxy.config import (
|
||||
)
|
||||
from galaxy.script import main_factory
|
||||
from galaxy.tools.deps import CachedDependencyManager, DependencyManager, NullDependencyManager
|
||||
from galaxy.util.properties import find_config_file, load_app_properties
|
||||
|
||||
DESCRIPTION = "Script to manage tool dependencies (with focus on a Conda environments)."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user