File: non-empty-patch-for-empty-file.diff

package info (click to toggle)
python-patch-ng 1.17.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 792 kB
  • sloc: python: 2,124; cpp: 1,598; xml: 38; sh: 11; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: upload.py
===================================================================
--- upload.py	(revision 623)
+++ upload.py	(working copy)
@@ -393,6 +393,9 @@
 ##           elif e.code >= 500 and e.code < 600:
 ##             # Server Error - try again.
 ##             continue
+          elif e.code == 404:
+            ErrorExit("Error: RPC call to %s failed with status 404\n"
+              "Check upload server is valid - %s" % (request_path, self.host))
           else:
             raise
     finally: