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

[Git][ftp-team/dak][master] 3 commits: process_upload: catch exception from exception logging



Title: GitLab

Mark Hymers pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • dak/process_upload.py
    ... ... @@ -499,7 +499,10 @@ def process_changes(changes_filenames):
    499 499
                 c = daklib.upload.Changes(directory, filename, keyring_files)
    
    500 500
                 changes.append([directory, c])
    
    501 501
             except Exception as e:
    
    502
    -            Logger.log([filename, "Error while loading changes: {0}".format(e)])
    
    502
    +            try:
    
    503
    +                Logger.log([filename, "Error while loading changes file {0}: {1}".format(fn, e)])
    
    504
    +            except Exception as e:
    
    505
    +                Logger.log([filename, "Error while loading changes file {0}, with additional error while printing exception: {1}".format(fn, repr(e))])
    
    503 506
     
    
    504 507
         changes.sort(key=lambda x: x[1])
    
    505 508
     
    


  • Reply to: