diff zone: bail out if the series is not local
1 files changed, 6 insertions(+), 2 deletions(-)

M tshistory_editor/editor.py
M tshistory_editor/editor.py +6 -2
@@ 371,8 371,12 @@ def editor(app,
         kind = tsa.type(name)
         if kind != 'primary' or not name:
             return ''
-        # layering violation ... does the api wants a last_id ?
-        rev_id = tsa.tsh.last_id(tsa.engine, name)
+        # layering violation ... does the api wants a last_id ? NO !
+        try:
+            rev_id = tsa.tsh.last_id(tsa.engine, name)
+        except:
+            # very likely a remote series or something fishy, bail out from there
+            return ''
         return rev_id
 
     @dashboard.callback(dash.dependencies.Output('diff', 'children'),