summaryrefslogtreecommitdiffhomepage
path: root/gbp/pq.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/pq.py')
-rw-r--r--gbp/pq.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gbp/pq.py b/gbp/pq.py
index b8d62a1c..9ffe77a1 100644
--- a/gbp/pq.py
+++ b/gbp/pq.py
@@ -55,6 +55,10 @@ class PatchQueue(list):
def read_series_file(klass, seriesfile):
"""Read a series file into L{Patch} objects"""
patch_dir = os.path.dirname(seriesfile)
+
+ if not os.path.exists(seriesfile):
+ return []
+
try:
s = file(seriesfile)
except Exception, err: