Skip to content

Commit

Permalink
Add python2 support to raise from
Browse files Browse the repository at this point in the history
  • Loading branch information
yuumasato committed Feb 20, 2024
1 parent 3e68c8f commit bcff6c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ssg/controls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from future.utils import raise_from

import collections
import os
import copy
Expand Down Expand Up @@ -190,7 +192,7 @@ def add_references(self, reference_type, rules):
"Please remove any duplicate listing of rule '%s' in "
"control '%s'." % (
rule.id_, self.id))
raise ValueError(msg) from exc
raise_from(ValueError(msg), exc)


class Level(ssg.entities.common.XCCDFEntity):
Expand Down

0 comments on commit bcff6c1

Please sign in to comment.