<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>224226</bug_id>
          
          <creation_ts>2021-04-05 23:42:06 -0700</creation_ts>
          <short_desc>webkit-patch apply-from-bug fails with a python backtrace if the bug does not exist</short_desc>
          <delta_ts>2023-05-02 00:57:46 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1747292</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-04-05 23:42:06 -0700</bug_when>
    <thetext>webkit-patch apply-from-bug fails with a python backtrace if the bug does not exist

kkinnunen@Kimmos-iMac-Pro OpenSource % Tools/Scripts/webkit-patch apply-from-bug 424742                                          
Updating working directory
Updating OpenSource
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace &quot;git config&quot; with &quot;git config --global&quot; to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Already up to date.
Reading Keychain for bugs.webkit.org account and password.  Click &quot;Allow&quot; to continue...
Could not find a keychain entry for bugs.webkit.org using find-internet-password.
Reading Keychain for bugs.webkit.org account and password.  Click &quot;Allow&quot; to continue...
Logging in as kkinnunen@apple.com...
Fetching: https://bugs.webkit.org/show_bug.cgi?id=424742&amp;ctype=xml&amp;excludefield=attachmentdata
Traceback (most recent call last):
  File &quot;Tools/Scripts/webkit-patch&quot;, line 80, in &lt;module&gt;
    main()
  File &quot;Tools/Scripts/webkit-patch&quot;, line 75, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File &quot;/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 305, in main
    result = command.check_arguments_and_execute(options, args, self)
  File &quot;/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 123, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/tool/commands/download.py&quot;, line 173, in execute
    patches = self._fetch_list_of_patches_to_process(options, args, tool)
  File &quot;/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/tool/commands/download.py&quot;, line 220, in _fetch_list_of_patches_to_process
    patches = tool.bugs.fetch_bug(bug_id).reviewed_patches()
  File &quot;/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py&quot;, line 493, in fetch_bug
    return Bug(self.fetch_bug_dictionary(bug_id), self)
  File &quot;/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py&quot;, line 486, in fetch_bug_dictionary
    return self._parse_bug_dictionary_from_xml(self._fetch_bug_page(bug_id))
  File &quot;/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py&quot;, line 462, in _parse_bug_dictionary_from_xml
    bug[&quot;title&quot;] = self._string_contents(soup.find(&quot;short_desc&quot;))
  File &quot;/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py&quot;, line 402, in _string_contents</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1749561</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-04-12 23:43:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/76577393&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>