Commit df92b336 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Removed use of ParserKeyError in favour of regular KeyError.

parent 343faa63
......@@ -15,7 +15,6 @@ import unittest
import logging
import numpy as np
from cp2kparser import CP2KParser
from nomadcore.local_backend import ParserKeyError
from nomadcore.unit_conversion.unit_conversion import convert_unit
......@@ -682,7 +681,7 @@ class TestGeoOptTrajectory(unittest.TestCase):
system = systems[system_index]
if i_conf == 0 or i_conf == 2 or i_conf == 4:
with self.assertRaises(ParserKeyError):
with self.assertRaises(KeyError):
pos = system["atom_positions"]
pos = system["atom_positions"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment