Skip to content

Commit

Permalink
fixed linting format
Browse files Browse the repository at this point in the history
  • Loading branch information
waterflow80 committed Jul 4, 2024
1 parent 3116c48 commit 2948e0e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/lzreposync/src/lzreposync/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def import_package_batch(to_process, batch_index=-1):
# with cfg_component("server.susemanager") as CFG:
# mount_point = CFG.MOUNT_POINT
import_count = 0
failed_packages = 0
batch_size = len(to_process)
initial_size = batch_size
# all_packages = set() # TODO: see reposync
Expand Down Expand Up @@ -70,8 +69,7 @@ def import_package_batch(to_process, batch_index=-1):
mpm_bin_batch.append(pkg)
except (KeyboardInterrupt, rhnSQL.SQLError):
raise
except Exception:
# failed_packages += 1
except Exception as e:
e_message = f"Exception: {e}"
log2(0, 1, e_message, stream=sys.stderr)
# raise e # Ignore the package and continue
Expand Down Expand Up @@ -109,7 +107,6 @@ def import_package_batch(to_process, batch_index=-1):
except (KeyboardInterrupt, rhnSQL.SQLError):
raise
except Exception as e:
# failed_packages += 1
e_message = f"Exception: {e}"
log2(0, 1, e_message, stream=sys.stderr)
# raise e # Ignore the package and continue
Expand Down

0 comments on commit 2948e0e

Please sign in to comment.