Skip to content
Unverified Commit 78d400f7 authored by Paul Wise's avatar Paul Wise
Browse files

Do not try to remove sha1 cache and changelog files that do not exist

Traceback (most recent call last):
  File "bin/remove-obsolete-new-packages", line 178, in <module>
    remove(sha1_cache_path, 'file from sha1 cache')
  File "bin/remove-obsolete-new-packages", line 122, in remove
    os.rmdir(os.path.dirname(path))
  File "/usr/lib/python3.5/posixpath.py", line 148, in dirname
    i = p.rfind(sep) + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

Traceback (most recent call last):
  File "bin/remove-obsolete-new-packages", line 181, in <module>
    remove(changelog_path, 'changelog file')
  File "bin/remove-obsolete-new-packages", line 122, in remove
    os.rmdir(os.path.dirname(path))
  File "/usr/lib/python3.5/posixpath.py", line 148, in dirname
    i = p.rfind(sep) + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
parent 090177c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment