mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
fix linting issues
This commit is contained in:
@@ -92,11 +92,11 @@ class CommandlineParser:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
return args.command.run(args)
|
return args.command.run(args)
|
||||||
except UsageError as e:
|
except UsageError as exception:
|
||||||
log = logging.getLogger()
|
log = logging.getLogger()
|
||||||
if log.isEnabledFor(logging.DEBUG):
|
if log.isEnabledFor(logging.DEBUG):
|
||||||
raise # use Python's exception printing
|
raise # use Python's exception printing
|
||||||
log.fatal('FATAL: ' + str(e))
|
log.fatal('FATAL: %s', exception)
|
||||||
|
|
||||||
# If we get here, then execution has failed in some way.
|
# If we get here, then execution has failed in some way.
|
||||||
return 1
|
return 1
|
||||||
@@ -124,7 +124,7 @@ def _osm2pgsql_options_from_args(args, default_cache, default_threads):
|
|||||||
# No need to document the functions each time.
|
# No need to document the functions each time.
|
||||||
# pylint: disable=C0111
|
# pylint: disable=C0111
|
||||||
# Using non-top-level imports to make pyosmium optional for replication only.
|
# Using non-top-level imports to make pyosmium optional for replication only.
|
||||||
# pylint: disable=C0415
|
# pylint: disable=E0012,C0415
|
||||||
|
|
||||||
|
|
||||||
class SetupAll:
|
class SetupAll:
|
||||||
|
|||||||
@@ -6,4 +6,3 @@ class UsageError(Exception):
|
|||||||
""" An error raised because of bad user input. This error will usually
|
""" An error raised because of bad user input. This error will usually
|
||||||
not cause a stack trace to be printed unless debugging is enabled.
|
not cause a stack trace to be printed unless debugging is enabled.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|||||||
Reference in New Issue
Block a user