[gnome-code-assistance] [backends/c] Ignore errors without location information
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/c] Ignore errors without location information
- Date: Fri, 8 Nov 2013 12:04:00 +0000 (UTC)
commit 6623e5f14ff5e3da9be7c1018a1b348840e24c55
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Fri Nov 8 13:03:37 2013 +0100
[backends/c] Ignore errors without location information
backends/c/__init__.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/backends/c/__init__.py b/backends/c/__init__.py
index c79299c..4152cb7 100644
--- a/backends/c/__init__.py
+++ b/backends/c/__init__.py
@@ -98,6 +98,9 @@ class Document(transport.Document, transport.Diagnostics):
return s.NONE
def _map_csource_location(self, location):
+ if location.file is None:
+ return None
+
if not os.path.samefile(self.path, location.file.name):
return None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]