Skip to content

Commit 7198a4a

Browse files
committed
fix for includes
1 parent f96501b commit 7198a4a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@
3838
if not server.endswith("/v1/"): server += "v1/"
3939

4040
def get_keys(filename, import_base=None):
41-
content = open(filename).read()
41+
try:
42+
if not os.path.isfile(filename):
43+
filename += ".tex"
44+
content = open(filename).read()
45+
except:
46+
return []
4247

4348
# extract cites
4449
keys = set()

0 commit comments

Comments
 (0)