I do a lot of Razor templating (C# with HTML), and when I do something dependent on an external API (e.g., an Instagram widget), I usually wrap it in a try-catch block without handling the exception. I usually just print an HTML comment like, <!— Something went wrong with the Instagram widget. —>.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I do a lot of Razor templating (C# with HTML), and when I do something dependent on an external API (e.g., an Instagram widget), I usually wrap it in a try-catch block without handling the exception. I usually just print an HTML comment like,
<!— Something went wrong with the Instagram widget. —>
.