AtomsDevs/Atoms

[BUG]: When atoms fails with the checksum checks, it doesn't do anything

axtloss opened this issue · 1 comments

Description:

When creating a new atom and the checksum fails (in my case because the file specified in the checksum file doesn't exist), instead of raising an exception and showing an error in the ui it just silently crashes in the background and then gets stuck on the creation screen with this error in the terminal:

Error while running async job: <function AtomsNewAtomWindow.__on_btn_create_clicked.<locals>.create_atom at 0x7fd03b87f4c0>
Exception: not enough values to unpack (expected 2, got 1)
  File "/app/share/atoms/atoms/utils/threading.py", line 59, in __target
    result = self.task_func(*args, **kwargs)
  File "/app/share/atoms/atoms/windows/new_atom_window.py", line 120, in create_atom
    return self.window.manager.request_new_atom(
  File "/app/lib/python3.9/site-packages/atoms_core/atoms.py", line 93, in request_new_atom
    return Atom.new(
  File "/app/lib/python3.9/site-packages/atoms_core/entities/atom.py", line 168, in new
    image = AtomsImageUtils.get_image(
  File "/app/lib/python3.9/site-packages/atoms_core/utils/image.py", line 42, in get_image
    remote_hash = distribution.read_remote_hash(architecture, release)
  File "/app/lib/python3.9/site-packages/atoms_core/entities/distribution.py", line 90, in read_remote_hash
    _hash, _file = re.split(r"\s+", line, maxsplit=1)