Skip to content

Commit 296fbb7

Browse files
author
notactuallyfinn
committed
fixed formatting errors
1 parent 630dd00 commit 296fbb7

7 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/hermes/commands/curate/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __call__(self, args: argparse.Namespace) -> None:
5555
# load plugin
5656
try:
5757
plugin_func = self.plugins[plugin_name]()
58-
except KeyError as e:
58+
except KeyError:
5959
self.log.error(f"Plugin {plugin_name} not found.")
6060
raise MisconfigurationError(f"Curate plugin {plugin_name} not found.")
6161

src/hermes/commands/deposit/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __call__(self, args: argparse.Namespace) -> None:
143143
# load plugin
144144
try:
145145
plugin_func = self.plugins[plugin_name]()
146-
except KeyError as e:
146+
except KeyError:
147147
self.log.error(f"Plugin {plugin_name} not found.")
148148
raise MisconfigurationError(f"Deposit plugin {self.settings.plugin} not found.")
149149

src/hermes/commands/harvest/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from hermes.commands.base import HermesCommand, HermesPlugin
1212
from hermes.error import HermesPluginRunError, MisconfigurationError
1313
from hermes.model.context_manager import HermesContext
14-
from hermes.model.error import HermesValidationError
1514
from hermes.model import SoftwareMetadata
1615

1716

@@ -51,7 +50,7 @@ def __call__(self, args: argparse.Namespace) -> None:
5150
# load plugin
5251
try:
5352
plugin_func = self.plugins[plugin_name]()
54-
except KeyError as e:
53+
except KeyError:
5554
self.log.error(f"Plugin {plugin_name} not found.")
5655
raise MisconfigurationError(f"Harvest plugin {plugin_name} not found.")
5756

src/hermes/commands/postprocess/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __call__(self, args: argparse.Namespace) -> None:
4343
# load plugin
4444
try:
4545
plugin_func = self.plugins[plugin_name]()
46-
except KeyError as e:
46+
except KeyError:
4747
self.log.error(f"Plugin {plugin_name} not found.")
4848
raise MisconfigurationError(f"Postprocess plugin {plugin_name} not found.")
4949

src/hermes/commands/process/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __call__(self, args: argparse.Namespace) -> None:
4949
# load plugin
5050
try:
5151
plugin_func = self.plugins[plugin_name]()
52-
except KeyError as e:
52+
except KeyError:
5353
self.log.error(f"Plugin {plugin_name} not found.")
5454
raise MisconfigurationError(f"Postprocess plugin {plugin_name} not found.")
5555

src/hermes/error.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
class MisconfigurationError(Exception):
88
pass
99

10+
1011
class HermesPluginRunError(Exception):
11-
pass
12+
pass

test/hermes_test/model/types/test_pyld_util.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
import pytest
88

9-
from unittest import mock
10-
119
from pyld import jsonld
1210
from hermes.model.types import pyld_util
1311

0 commit comments

Comments
 (0)