aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bug.py
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spam@spamtrap.com>2012-03-03 10:59:43 -0500
committerW. Trevor King <wking@drexel.edu>2012-03-03 10:59:43 -0500
commit187bface721aec16800e612cc292c1fec4ee966b (patch)
treefff89497d65afb9757562a1b06e34d020ac65919 /libbe/bug.py
parenta583b395494c86460fbddbd81a2eb37afe05135c (diff)
downloadbugseverywhere-187bface721aec16800e612cc292c1fec4ee966b.tar.gz
Fix `be import_xml` bugs.
Diffstat (limited to 'libbe/bug.py')
-rw-r--r--libbe/bug.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbe/bug.py b/libbe/bug.py
index 3b9be59..f562836 100644
--- a/libbe/bug.py
+++ b/libbe/bug.py
@@ -410,8 +410,9 @@ class Bug (settings_object.SavedSettingsObject):
uuid = text
continue # don't set the bug's uuid tag.
elif child.tag == 'created':
- self.time = utility.str_to_time(text)
- self.explicit_attrs.append('time')
+ if text is not settings_object.EMPTY:
+ self.time = utility.str_to_time(text)
+ self.explicit_attrs.append('time')
continue
elif child.tag == 'extra-string':
estrs.append(text)