mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Implement black formatting
This commit is contained in:
@@ -2,23 +2,32 @@
|
||||
#
|
||||
#
|
||||
|
||||
from __future__ import absolute_import, division, print_function, \
|
||||
unicode_literals
|
||||
from __future__ import (
|
||||
absolute_import,
|
||||
division,
|
||||
print_function,
|
||||
unicode_literals,
|
||||
)
|
||||
|
||||
from logging import getLogger
|
||||
|
||||
logger = getLogger('DigitalOcean')
|
||||
try:
|
||||
logger.warning('octodns_digitalocean shimmed. Update your provider class '
|
||||
'to octodns_digitalocean.DigitalOceanProvider. Shim will '
|
||||
'be removed in 1.0')
|
||||
logger.warning(
|
||||
'octodns_digitalocean shimmed. Update your provider class '
|
||||
'to octodns_digitalocean.DigitalOceanProvider. Shim will '
|
||||
'be removed in 1.0'
|
||||
)
|
||||
from octodns_digitalocean import DigitalOceanProvider
|
||||
|
||||
DigitalOceanProvider # pragma: no cover
|
||||
except ModuleNotFoundError:
|
||||
logger.exception('DigitalOceanProvider has been moved into a separate '
|
||||
'module, octodns_digitalocean is now required. Provider '
|
||||
'class should be updated to '
|
||||
'octodns_digitalocean.DigitalOceanProvider. See '
|
||||
'https://github.com/octodns/octodns#updating-'
|
||||
'to-use-extracted-providers for more information.')
|
||||
logger.exception(
|
||||
'DigitalOceanProvider has been moved into a separate '
|
||||
'module, octodns_digitalocean is now required. Provider '
|
||||
'class should be updated to '
|
||||
'octodns_digitalocean.DigitalOceanProvider. See '
|
||||
'https://github.com/octodns/octodns#updating-'
|
||||
'to-use-extracted-providers for more information.'
|
||||
)
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user