@@ -287,12 +287,12 @@ def write_changelog(repo_name, commit_link_prefix, git_revision):
287287with open (changelog_file , "a" ) as fp :
288288 fp .write (f"Remote Module Changes Since { revision } \n " )
289289 fp .write ("---------------------------------------------\n \n " )
290- print ("Remote module:" )
290+ print ("Updated remote module:" )
291291for remote in changed_remotes .split ():
292292 module_name = remote .split ("/" )[- 1 ].split ("." )[0 ]
293293 if module_name in ["SphinxExamples" , "CMakeLists" , "README" ]:
294294 continue
295- print ( module_name )
295+ sys . stdout . write ( f"* { module_name } *, " )
296296 os .chdir (itk_dir )
297297
298298 # The remote file could have been added or its name changed. Use the oldest
@@ -328,12 +328,16 @@ def write_changelog(repo_name, commit_link_prefix, git_revision):
328328 update_recent_authors (f"{ remote_old_tag } ..{ remote_new_tag } " )
329329 update_authors_with_email (f"{ remote_old_tag } ..{ remote_new_tag } " )
330330
331- log = subprocess .check_output (
332- "git shortlog --format=%s:%h --topo-order --no-merges {0}..{1}" .format (
333- remote_old_tag , remote_new_tag
334- ),
335- shell = True ,
336- ).decode ("utf-8" )
331+ try :
332+ log = subprocess .check_output (
333+ "git shortlog --format=%s:%h --topo-order --no-merges {0}..{1}" .format (
334+ remote_old_tag , remote_new_tag
335+ ),
336+ shell = True ,
337+ ).decode ("utf-8" )
338+ except :
339+ subprocess .CalledProcessError
340+ continue
337341 commit_link_prefix = remote_repo .replace (".git" , "" ) + "/commit/"
338342 formatted_log = format_shortlog (log , commit_link_prefix )
339343 with open (changelog_file , "a" ) as fp :
0 commit comments