Fix post-merge lint issues

This commit is contained in:
Nate Coraor
2017-11-09 14:00:46 -05:00
parent 4eface7e72
commit b75583ea26
9 changed files with 3 additions and 9 deletions
+1
View File
@@ -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):
+1 -1
View File
@@ -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])))
-1
View File
@@ -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
-1
View File
@@ -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
+1 -1
View File
@@ -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)
-2
View File
@@ -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
-1
View File
@@ -200,7 +200,6 @@ class GalaxyConfigBuilder(object):
config_file,
dict(__file__=config_file, here=os.path.dirname(config_file))
)
root = logging.getLogger()
def main():
-1
View File
@@ -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"
-1
View File
@@ -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)."