mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-20 10:52:05 +00:00
Fix Exception
``` Exception has occurred. ArgumentError (Invalid argument(s): No host specified in URI ) ``` at line 79: `final req = await http.get(Uri.parse(source.sourceCodeUrl!));` when source.sourceCodeUrl is empty.
This commit is contained in:
parent
b161981901
commit
3eb0dc2534
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,8 @@ Future<void> fetchSourcesList({
|
|||
(source) => source.id == id,
|
||||
orElse: () => Source(),
|
||||
);
|
||||
if (matchingSource.id != null) {
|
||||
if (matchingSource.id != null &&
|
||||
matchingSource.sourceCodeUrl!.isNotEmpty) {
|
||||
await _updateSource(matchingSource, ref, repo, itemType);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue