#1795 fix typos for GenericError
Merged 2 years ago by tkopecek. Opened 2 years ago by julian8628.
julian8628/koji fix-pr-1773  into  master

file modified
+2 -2
@@ -609,7 +609,7 @@ 

  

      def __init__(self, data):

          if rpm is None:

-             raise koji.GenericError("rpm's python bindings are not installed")

+             raise GenericError("rpm's python bindings are not installed")

          if data[0:3] != RPM_HEADER_MAGIC:

              raise GenericError("Invalid rpm header: bad magic: %r" % (data[0:3],))

          self.header = data
@@ -895,7 +895,7 @@ 

  def get_rpm_header(f, ts=None):

      """Return the rpm header."""

      if rpm is None:

-         raise koji.GenericError("rpm's python bindings are not installed")

+         raise GenericError("rpm's python bindings are not installed")

      if ts is None:

          ts = rpm.TransactionSet()

          ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS)

Metadata Update from @julian8628:
- Pull-request tagged with: testing-ready

2 years ago

Commit 99f0da2 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

2 years ago