This commit is contained in:
Daniel Schick 2023-10-06 14:41:32 +02:00 committed by Daniel Schick
parent f51e3fe13a
commit da8ef2f113
2 changed files with 11 additions and 1 deletions

View File

@ -16,6 +16,7 @@ using BreCalClient.misc.Client;
using BreCalClient.misc.Model;
using static BreCalClient.Extensions;
using System.Runtime.Serialization;
namespace BreCalClient
{
@ -295,12 +296,17 @@ namespace BreCalClient
}));
}
catch (Exception ex)
{
{
this.Dispatcher.Invoke(new Action(() =>
{
labelGeneralStatus.Text = $"Connection {ConnectionStatus.FAILED}";
labelStatusBar.Text = ex.Message;
}));
if (ex.Message.Contains("access", StringComparison.OrdinalIgnoreCase))
{
this.RefreshToken(null);
}
}
if (shipcalls != null)

View File

@ -82,6 +82,10 @@ def PostShipcalls(schemaModel):
continue
if key == "modified":
continue
if key == "evaluation":
continue
if key == "evaluation_message":
continue
if isNotFirst:
query += ","
isNotFirst = True