[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] raise `IOError` instead of (undefined) `FileNotFoundError`



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • daklib/utils.py
    ... ... @@ -1314,7 +1314,7 @@ def find_possibly_compressed_file(filename):
    1314 1314
             if os.path.exists(_file):
    
    1315 1315
                 return _file
    
    1316 1316
     
    
    1317
    -    raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), filename)
    
    1317
    +    raise IOError(errno.ENOENT, os.strerror(errno.ENOENT), filename)
    
    1318 1318
     
    
    1319 1319
     ################################################################################
    
    1320 1320
     
    


  • Reply to: